Commit Graph

80 Commits

Author SHA1 Message Date
Felix Paul Kühne f86b347079 lib: add libvlc_video_get_spu_text_scale API
This complements 67c4ffd5.
2021-01-27 05:59:47 +01:00
Martin Finkel b1fd150a86 libvlc: fix crash in video_get_size
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2020-06-29 13:39:06 +02:00
Thomas Guillem a3cafc94cd lib: rename libvlc_media_track_delete to libvlc_media_track_release
Since libvlc_media_track_t will be refcounted.
2020-06-17 10:14:28 +02:00
Thomas Guillem aaff92bc75 lib: video: use libvlc_media_player_get_selected_track() 2020-06-11 14:13:29 +02:00
Mark Lee 67c4ffd586 lib: add libvlc_video_set_spu_text_scale API
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2020-04-22 08:29:15 +02:00
Mark Lee 11c47c1b5f lib: lock the player before updating the viewpoint
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2020-04-20 14:35:52 +02:00
Rémi Denis-Courmont d87d581af7 lib: remove dead code, fix warning 2019-07-11 22:14:03 +03: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
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
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
Thomas Guillem ee4afd6821 remove unused #include <vlc_input.h> 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
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
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
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
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
Steve Lhomme 5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Hugo Beauzée-Luyssen a9014afdac lib: Add thumbnailing support
Fix #17368
2018-11-12 17:09:05 +01:00
Rémi Denis-Courmont 4d1fe3415c lib: use libvlc_media_tracks_get()
...instead of deprecated libvlc_media_get_tracks_info().
2018-07-15 15:04:57 +03:00
Steve Lhomme 026e60e342 core: the "spu-delay" is stored in vlc_tick_t
Convert the read/writes accordingly
2018-07-03 16:13:30 +02:00
Rémi Denis-Courmont 0b3b1edf14 variables: use table of vlc_value_t for VLC_VAR_GETCHOICES
This simplifies the notation. No function differences.
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont 5d31da4eca variables: replace var_FreeList() with free()
...where applicable.
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont 5e50399a45 variables: add count parameter for VLC_VAR_GETCHOICES 2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont 34925c7cb5 variables: use char *** for VLC_VAR_GETCHOICES texts 2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont 63ce436225 variables: pass vlc_list_t directly with VLC_VAR_GETCHOICES 2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont d01c9337a4 variables: make forth var_Change() argument optional
Most requests do not actually need it.
2018-06-10 13:08:44 +03:00
Thomas Guillem 511cdf1f69 libvlc: simplify set_deinterlace 2018-05-09 09:37:35 +02:00
Luis Fernandes 4dc621ab66 libvlc: change set_deinterlace function
Users will be able to change the deinterlace mode without forcing it.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-05-09 09:37:18 +02:00
Luis Fernandes 174840ba85 libvlc: add "auto" deinterlace-mode
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-05-09 09:32:40 +02:00
Rémi Denis-Courmont 0d0d33cae9 libvlc: remove deprecated video functions 2018-05-03 15:25:37 +03:00
Hugo Beauzée-Luyssen 31e424004d input: Reintroduce subtitle extension check
Fix #18882
2017-10-04 11:06:52 +02:00
Hugo Beauzée-Luyssen 1083d47af5 Use input_AddSlave instead of input_AddSubtitleOSD 2017-09-21 17:47:22 +02:00
Thomas Guillem 4de59ab8a0 lib/video: clip viewpoint 2017-07-25 16:40:51 +02:00
Steve Lhomme 5c4aa4c941 lib: use local include
This is how it's done in all other files

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-07-01 18:40:10 +02:00
Thomas Guillem 738b0971d0 lib/video: apply filters value to all vouts 2017-06-05 18:39:00 +02:00
Thomas Guillem 9a516806f0 lib/video: factor set_int/set_float/set_string 2017-06-05 18:39:00 +02:00
Thomas Guillem 3c3da93c41 lib/video: fix indent 2017-06-05 18:39:00 +02:00
Rémi Denis-Courmont 65321da121 lib: media_player: allocate event manager in-place 2017-05-15 21:33:39 +03:00
Thomas Guillem 72a00334d7 Revert "lib/video: set "video" prop to true when changing video tracks"
This reverts commit 3add837059.

This commit was incomplete (missing audio/spu support) and is now done in vlc
core. See 8bc1b9ff8747be1b87730bea14a1b3778aed0bd6.
2017-03-28 14:24:33 +02:00
Thomas Guillem 76c74ca0cf libvlc: libvlc_video_set_teletext(0) to disable teletext
Since 0 is an invalid page for the zvbi plugin.

libvlc_video_get_teletext() will now return 0 if teletext is disabled. The
teletext was already disabled by default, and libvlc_video_get_teletext() could
be misleading since it returned 100 by default.
2017-03-27 14:43:35 +02:00
Thomas Guillem 0ee22e970d libvlc: libvlc_video_set_teletext can send keys 2017-03-27 14:41:44 +02:00
Thomas Guillem 8714fccc49 lib/video: toggle teletext from libvlc_video_set_teletext
If the page is in the range [0; 1000[ the teletext spu will be enabled. If the
page is -1, the teletext spu will be disabled. Otherwise do nothing and print
an error.
2017-03-14 17:29:48 +01:00
Thomas Guillem d05d123fc9 lib/video: refactor teletext activation 2017-03-14 16:49:08 +01:00
Thomas Guillem 15dc321efb lib/video: fix video filters not set when there is no vout
Set the video filter variable to the media_player, the vout will inherit from
it.

Fix #17761
2017-03-14 15:10:23 +01:00
Thomas Guillem 39ed50a2e1 lib/video: use a vlc_object_t to enable vout filters
Ref #17761
2017-03-14 14:38:25 +01:00
Thomas Guillem 78018b3602 lib/video: remove unused variable
configs are generally not written from libvlc.

Ref #17761
2017-03-14 14:38:25 +01:00