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

506 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
d87d581af7 lib: remove dead code, fix warning 2019-07-11 22:14:03 +03:00
Marvin Scholz
00b391b189 libvlc: Do not include revision.c file
Instead of including the revision.c file, add it to the sources
of the library.

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2019-07-04 16:07:14 +02:00
Steve Lhomme
4af3ab9860 libvlc: add missing "dec-dev" variable
It's needed by vlc_decoder_device_Create().
2019-06-26 15:48:12 +02:00
Thomas Guillem
c896210b00 player: get vout and vout_order from VIDEO/SPU es_ids
vlc_player_GetVoutFromEsId() can now return the vout used by an SPU es_id.
It also returns the vout order.

The on_vout_changed callback is also used for SPU es_ids. Users could check the
category of the es_id to know if the vout is attached to a VIDEO es or an SPU
one.
2019-06-25 20:50:07 +02:00
Thomas Guillem
dd5ba72db7 player: add a policy to vlc_player_SelectEsId
This will replace the future vlc_player_AddEsId() function (simultaneous).
2019-06-25 20:50:07 +02:00
Hugo Beauzée-Luyssen
6c8f81953e lib: media: Allow thumbnails to be cropped 2019-06-21 13:40:49 +02:00
Hugo Beauzée-Luyssen
f33f8bc7e4 picture: export: Allow source picture to be cropped 2019-06-21 13:40:49 +02:00
Thomas Guillem
cb1b9717d0 player: rename vlc_player_*Track to EsId
In order to clearly identify functions using a vlc_es_id_t*.
And add Track helpers.
2019-06-20 11:00:35 +02:00
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