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

489 Commits

Author SHA1 Message Date
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
Romain Vimont
7fabc5be79 input: pass thread event callbacks to input_Read()
Add parameters for callbacks and user data so that the caller may
receive input thread events (e.g. "subtree added").
2018-08-20 13:51:28 +02:00
Romain Vimont
d56e796169 libvlc: receive events from input thread
Replace listeners on the input item by preparser callbacks (for
preparsing) and input thread callbacks (for normal playback).
2018-08-20 13:51:28 +02:00
Romain Vimont
7725b10254 fetcher: provide events in callbacks
Notify "fetch ended" in callbacks.

This will allow to move the "preparse ended" trigger from the fetcher to
the preparser, and make the fetcher more independant.
2018-08-20 13:51:28 +02:00
Romain Vimont
812579453b preparser: provide events in callbacks
The input thread used by the preparser is not exposed to the caller.
Add a "callbacks" parameter to receive preparsing events.
2018-08-20 13:51:28 +02:00
Steve Lhomme
887b2e0a78 input:item: use a define for vlc://nop
So we can document what it means
2018-07-26 09:51:10 +02:00
Steve Lhomme
b4fd2a7ebf input:item: store the item type with the enum 2018-07-26 09:51:10 +02:00
Rémi Denis-Courmont
3de6692cea lib: remove VLM API
There does not appear to be any real user. The "broadcast"
functionality can be reproduced more simply with the LibVLC media
player API. The "VoD" functionality does not make much sense outside of
the VLC executable process.
2018-07-15 15:04:57 +03:00
Rémi Denis-Courmont
cd3c5c4c09 lib: remove libvlc_track_description_release() alias 2018-07-15 15:04:57 +03:00
Rémi Denis-Courmont
0bc226d7a2 lib: remove deprecated libvlc_media_get_tracks_info() 2018-07-15 15:04:57 +03:00