1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

498 Commits

Author SHA1 Message Date
Romain Vimont
6e4ea0ff1a libvlc: player: detach listener on destroy
Fix possible segfault, when receiving the preparsed event after the
libvlc_media_t instance was deleted.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-06-18 12:16:29 +02:00
Steve Lhomme
d57710ed8b libvlc: set the report size callback independently from the device setup
This way it can work for all modules that render externally. And the code is
generic. It also makes more sense to handle the window size in the window
module.
2019-06-17 08:49:19 +02:00
Rémi Denis-Courmont
8424d576de libvlc: provide sane interfaces for video crop
This provides one setter for each crop mode, matching the internal video
output functionality.
2019-06-04 18:40:55 +03:00
Rémi Denis-Courmont
ab0a8dc3e2 libvlc: remove libvlc_video_get_crop_geometry() 2019-06-04 18:40:05 +03:00
Steve Lhomme
646bbc965b libvlc: provide a callback to the host that it can call when its size changes 2019-06-04 12:35:10 +02:00
Thomas Guillem
f912a67d45 lib: remove media_library
Is it used ? It is the last one using input_thread_t.
I don't really understand this code though.
2019-06-03 16:15:55 +02:00
Thomas Guillem
72ec308f39 lib: media_player: use player capabilities 2019-06-03 16:15:55 +02:00
Thomas Guillem
ee4afd6821 remove unused #include <vlc_input.h> 2019-06-03 16:15:55 +02:00
Thomas Guillem
42e8a35e76 player: associate ES ids in vout_changed event
This will allow API users to clearly identify vouts.
2019-06-03 16:15:55 +02:00
Steve Lhomme
973ddbacad libvlc: remove libvlc_video_get_marquee_string() 2019-05-29 16:35:59 +02:00
Thomas Guillem
4d75329c8f Revert "Remove libvlc_free"
As decided by the VLC TC.
 - 4 in favor: David, Denis, Hugo, Thomas
 - 1 against: Rémi

cf. discussion here https://mailman.videolan.org/pipermail/vlc-devel/2019-May/124752.html

This reverts commit fa0d74966e.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Signed-off-by: David Fuhrmann <dfuhrmann@videolan.org>
Signed-off-by: Denis Charmet <typx@videolan.org>
2019-05-28 14:06:54 +02:00
Romain Vimont
80a8553e8a libvlc: player: rename stop() to stop_async()
The new player stops asynchronously. This is a breaking change, so use a
different function name.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:59 +02:00
Romain Vimont
c0c35a5002 libvlc: player: use vlc_player
Implement the old libvlc player API using the new vlc_player.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:58 +02:00
Romain Vimont
de3727296e libvlc: player: remove will_play()
This function is meaningless on the new player.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:56 +02:00
Romain Vimont
24c260aabd libvlc: player: send EndReached on input ended
Use the specific libvlc event when the input end is reached.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:36 +02:00
Rémi Denis-Courmont
fa0d74966e Remove libvlc_free
(cherry picked from commit 61f0547b72)
2019-05-19 14:24:01 +03:00
Rémi Denis-Courmont
94105be6cf lib: actually return bool
This fixes the old int-for-bool return values from before 1.1.0 and the
later cargo culted ones.
2019-05-19 10:48:58 +03:00
Rémi Denis-Courmont
5c432216bc lib: libvlc_set_fullscreen() takes a boolean 2019-05-19 10:48:58 +03:00
Steve Lhomme
c4988b1002 libvlc: cast between libvlc and vlc colorimetry to check values
Fixes many warnings
2019-05-16 09:59:16 +02:00
Steve Lhomme
cf16b6f0e7 libvlc: use a callback to select the plane to render to
When rendering in Direct3D11 to NV12 we use 2 planes in the same texture.
2019-05-11 07:33:55 +02:00
Steve Lhomme
ed34600e32 libvlc: add rendering callbacks for D3D11 and D3D9 2019-05-11 07:33:54 +02:00
Thomas Guillem
c67934b0b4 remove vlc_playlist_legacy 2019-05-10 09:43:31 +02:00
Rémi Denis-Courmont
e3270f2ae4 objects: merge vlc_object_t and vlc_common_members
This should fix historical aliasing issues.
2019-04-14 22:24:33 +03:00
Thomas Guillem
61ee1b1dab media_list_player: fix invalid assert
mplayer_em can be called without lock (before thread creation).

Fixes #21985
2019-03-26 10:26:28 +01:00
Rémi Denis-Courmont
aa3819b55d es_out: remove helpless decoder hold
If the decoder is valid for holding, then it is also valid for setting
a VLC object variable or adding a VLC object variable callback.
Otherwise, loading the decoder pointer or accessing the decoder is
undefined.

Either way, holding then releasing serves no purpose.

Note: input_GetEsObjects() should probably be removed in favor of the
new VBI input controls; but those are not currently exposed to input
managers.
2019-03-17 03:13:24 +02:00
Rémi Denis-Courmont
d973543417 input: remove constant nul parameters 2019-03-15 03:27:56 +02:00
Martin Finkel
486d832576 libvlc.sym: remove internal symbols
Those symbols are internal and lack the LIBVLC_API marker.
2019-03-12 13:15:21 +01:00
Thomas Guillem
5111f5e285 lib: media_list_player: remove wrong assert
Fixes #21985

This function is now always called locked (before the thread is created from
new()).
2019-03-11 10:18:37 +01:00
Rémi Denis-Courmont
07b7122857 objects: introduce vlc_object_delete()
Objects have one strong reference held by their "owner", and zero or
more weak references generated by vlc_object_hold() et al. This
provides a separate function to remove the strong reference than
vlc_object_release() to remove weak ones.

With this sole change, this is really only an annotation though.
2019-03-06 22:53:24 +02:00
Rémi Denis-Courmont
d2c1bc4433 aout: introduce aout_Hold() and aout_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
2019-03-06 22:53:24 +02:00
Rémi Denis-Courmont
a990818d1a vout: introduce vout_Hold() and vout_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
2019-03-06 22:53:24 +02:00
Rémi Denis-Courmont
d55765b605 input: introduce input_Hold() and input_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
2019-03-06 22:53:23 +02:00
Rémi Denis-Courmont
3b26572047 input: remove log parameter to input_Create() 2019-02-20 17:35:01 +02:00
Rémi Denis-Courmont
e48a8a9eb2 objects: add vlc_object_instance()
...instead of open-coded access to obj->obj.libvlc
2019-02-19 18:05:35 +02:00
Steve Lhomme
1b3be396a3 libvlc: return false if setting the vout callback fails
The engine provide may have a wrong value or may not be supported on the
given platform/build.
2019-01-18 11:10:24 +01:00
Steve Lhomme
78d3d6a3c6 remove stray $Id 2019-01-17 15:37:36 +01:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Steve Lhomme
dad77ea95c libvlc: remove the _gl_ from the video output callbacks API
And rename the matching variables to "vout-cb-*"
2019-01-16 13:02:48 +01:00
Steve Lhomme
fbb9030c0e libvlc: rename libvlc_video_set_opengl_callbacks() to libvlc_video_set_output_callbacks()
We're going to support D3D11 and D3D9 with the same API.

At some point it may be merged with libvlc_video_set_callbacks() as well.
2019-01-16 13:02:34 +01:00
Steve Lhomme
7700a8f262 libvlc: rename libvlc_gl_resize_cb to libvlc_update_output_cb
And rename the internal variable to "vout-cb-update-output"
2019-01-16 13:02:33 +01:00
Rémi Denis-Courmont
49b6bc3351 log: define constant operations structure 2018-11-18 17:56:52 +02:00
Thomas Guillem
034a3f75a2 core: move playlist to playlist_legacy
To make room for the new playlist.
This playlist_legacy will be removed once all modules are using the new
playlist.
2018-11-15 14:54:00 +01:00
Olivier Aubert
71cb852338 lib: typedef libvlc_thumbnailer_seek_speed_t enum
It is more consistent with the way of using/defining enums in the rest of the libvlc API.
2018-11-12 17:51:26 +01:00
Hugo Beauzée-Luyssen
a9014afdac lib: Add thumbnailing support
Fix #17368
2018-11-12 17:09:05 +01:00
Hugo Beauzée-Luyssen
8074c1cce6 lib: Add libvlc_picture API
This API is mostly meant to simplify thumbnailing management, by
exposing a simple picture type, that can be probed for its buffer or
saved to a file
2018-11-12 17:09:05 +01:00
Rémi Denis-Courmont
b974c185df lib: use vlc_mutex_assert() 2018-10-21 12:44:56 +03:00
Marvin Scholz
84afce63c5 lib/media_player: Fix incorrect error message
The function libvlc_media_player_set_hwnd sets a hwnd, not an NSObject.
2018-10-12 19:38:45 +02:00
Steve Lhomme
a856cc1460 core: use vlc_tick_t for seekpoint_t::i_time_offset officially 2018-09-20 11:31:36 +02:00
Thomas Guillem
92c146a614 input: change input_thread_events_cb params
Move the void *user_data parameter at the end of the function. For consistency,
since most opaque pointers are passed at the end of functions in the VLC code
base.
2018-08-31 11:01:28 +02:00
Pierre Lamot
31d24092a4 vgl: expose opengl callbacks through libvlc
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-08-21 14:37:50 +02:00