1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00
Commit Graph

254 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
f85bd3e471 input: privatize b_preparsing 2016-11-05 11:34:13 +02:00
Rémi Denis-Courmont
ad4a50d394 input: remove indirection from input to input private data
Put the input thread (public) within the private data, like we already
do for some other core-allocated objects. This removes one layer of
indirection for almost all internal input values.

input_thread_t.p no longer exists. Use input_priv() instead.
2016-11-05 10:44:55 +02:00
Rémi Denis-Courmont
7bc29a257a input: remove write-only, unsafe and deprecated b_dead flag 2016-10-29 18:03:02 +03:00
Jean-Baptiste Kempf
5c24252aaa vlc_input_title_Duplicate: use C99 for 2016-06-22 12:20:47 +02:00
Jean-Baptiste Kempf
aefbd1cb84 vlc_input_title_Duplicate: fix possible crash 2016-06-22 12:02:20 +02:00
Rémi Denis-Courmont
b296f18c02 input: remove unused "position-offset" variable 2016-06-15 22:32:30 +03:00
Thomas Guillem
f81b16e5ad libvlc: change libvlc_media_player_add_slave arguments
The last boolean argument is used to force the selection of a slave.
2016-06-07 18:25:53 +02:00
Thomas Guillem
c46ebe14de input: add input_AddSlave 2016-05-31 16:23:09 +02:00
Jean-Baptiste Kempf
bf5a018c86 demux: Add INPUT_NAV_MENU
Currently DVD/BluRay menu call expects the menu to be in title 0.
It also seeks to chapter 2 or 0 (DVD menu type is selected by
selecting chapter). Using dedicated control allows the plugins to
decide how menu call should be handled.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-05-13 10:55:10 +02:00
Felix Paul Kühne
a527e9d086 libvlc: replace existing title menu bool with int bit mask 2015-12-21 11:03:00 +01:00
Zhao Zhili
bb931e1416 vlc_input: check malloc return
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2015-12-16 20:23:15 +02:00
Petri Hintukainen
59a8278f6f input: convert input_title_t.b_menu to flags
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-12-02 14:50:10 +01:00
Jean-Baptiste Kempf
907eaa518e Comment navigation queries 2015-11-26 16:03:43 +01:00
Felix Paul Kühne
6225d2fd7d Cosmetics 2015-11-24 16:34:25 +01:00
Francois Cartegnie
0efef5cc76 vlc_input: remove unneeded init and add check allocs 2015-11-22 17:46:13 +01:00
Petri Hintukainen
4e9f1e4679 Add INPUT_NAV_POPUP and DEMUX_NAV_POPUP for BluRay pop-up menu
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-11-21 19:35:02 +01:00
Rémi Denis-Courmont
37c38fd3e0 input: remove INPUT_GET_VIDEO_FPS control 2015-10-24 21:28:49 +03:00
Rémi Denis-Courmont
11d6de98aa input: remove byte offset from seekpoints/chapters
The input thread and input manager have no use for this.
2015-09-04 22:44:31 +03:00
Rémi Denis-Courmont
3bfdca14bd input: remove write-only input_title_t.i_size 2015-09-04 20:57:34 +03:00
Thomas Guillem
82381660fc input: fix typo in vlc_attachment_New() 2015-08-18 10:39:09 +02:00
Rémi Denis-Courmont
502e723f49 input: fix vlc_attachment_New() error handling
Also use size_t for the size.
2015-08-15 13:23:47 +03:00
Rémi Denis-Courmont
5f17cb41c0 input: inline input_CreateAndStart(), fix error handling 2015-06-28 17:34:33 +03:00
Rémi Denis-Courmont
4ee1038059 include: improve Doxygen modules
In particular, move \file stanzas inside groups.
2015-06-14 19:04:50 +03:00
Felix Paul Kühne
b0ba9c4cc8 libvlc: expand media player API to retrieve full information about available chapter of a given title 2015-06-09 17:58:14 +02:00
Felix Paul Kühne
8bb74ef54d libvlc: expand media player API to retrieve information about all available titles of the currently playing media item 2015-06-09 17:58:14 +02:00
Rémi Denis-Courmont
af922d5e6c input: remove input_thread_t.b_error 2015-06-05 22:18:18 +03:00
Rémi Denis-Courmont
3b6780d314 input: remove input_thread_t.b_eof 2015-06-05 22:08:04 +03:00
Rémi Denis-Courmont
729adddade input: deprecate b_dead, b_eof and b_error
Those values are writable by the input thread, and thus inaccessible
to other threads. Any remaining use of those (in VLM, podcast and
interfaces notably) is an undefined memory access, a bug.
2015-06-05 00:09:00 +03:00
Rémi Denis-Courmont
c7734fccf4 input: remove input_Join() and input_Release() 2015-05-21 19:31:43 +03:00
Jean-Baptiste Kempf
46437d4aa3 input: check malloc return 2015-04-28 15:11:33 +02:00
Rémi Denis-Courmont
132f872d78 decoder: add input_DecoderDrain() 2015-03-21 19:20:08 +02:00
Rémi Denis-Courmont
7a53080610 decoder: add input_DecoderFlush() 2015-03-21 18:52:00 +02:00
Rémi Denis-Courmont
f96f02d995 input_DecoderCreate: missing const 2015-02-21 11:05:12 +02:00
Rémi Denis-Courmont
acb7470b52 input: remove useless parameter to input_Stop() 2015-02-05 22:40:42 +02:00
Rémi Denis-Courmont
bdcdf97054 input: merge ABORT and DEAD events 2015-02-05 22:30:36 +02:00
Rémi Denis-Courmont
98682b66af include: fix external compilation (fixes #12355) 2014-10-07 23:21:35 +03:00
Felix Paul Kühne
2fe9c763f0 input: fix warning 2014-05-16 22:34:51 +02:00
Rémi Denis-Courmont
b1ff0c7e29 resource: add input_resource_ResetAout() 2014-03-10 19:19:04 +02:00
Mark Lee
5c0a6cabc3 lib: allow media player volume to be set before playing media
This is based on similar initialisation as is already done in the
playlist_Create() function.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2014-02-26 19:02:33 +02:00
Jean-Paul Saman
d2acb6213e Revert "input core: add status field per elementary stream"
This reverts commit d8199d8cbe.
2014-02-15 22:50:53 +01:00
Jean-Paul Saman
d8199d8cbe input core: add status field per elementary stream
VLC has status reporting on the input state, but not on the output state.
This makes it impossible to know if playback actually started completely from
checking stream status states.

For instance a failed audio output cannot be determined programatically. This
patch adds an extra field per ES (in src/input/es_out.c) to determine the state
of that ES (DISABLE, ENABLED, ERROR).

If CreateDecoder() cannot instantiate an output, then it set p_dec->b_error = true.
This is used to determine what the return value for es_out_GetEsState() should be.
If p_dec->b_error is true, then it returns an ES_OUT_STATE_ES_ERROR to the caller.
Else it returns ES_OUT_STATE_ES_ENABLED or ES_OUT_STATE_ES_DISABLED.

A function 'es_out_GetEsState()' is available to query an input for the state of
the primary audio, video and SPU elementary streams.
2014-02-15 22:45:25 +01:00
Jean-Baptiste Kempf
511888ee37 Show OSD when drag-n-dropping subtitles
And when it was successfully added

Close #8395
2014-02-09 23:57:50 +01:00
Rémi Denis-Courmont
776f719e75 input_CreateFilename: take explicit input thread pointer
This should fix meta-data expansion in LibVLC (i.e. when recording).
2014-01-01 20:55:46 +02:00
Rémi Denis-Courmont
cea762697e access: remove info.i_(update|title|seekpoint) 2013-08-26 22:47:55 +03:00
Rémi Denis-Courmont
49b528cd80 mpeg: implement title/seekpoint controls (refs #8455)
This is intended for VDR directories and Video CDs.
2013-08-26 22:47:52 +03:00
Rémi Denis-Courmont
d2cd2e5d36 input: poll signal level through demux (refs #8456) 2013-08-26 20:28:53 +03:00
Rémi Denis-Courmont
2e42f02431 input: remove write-only INPUT_UPDATE_SIZE 2013-04-17 23:15:55 +03:00
Rémi Denis-Courmont
732c5ed426 input: remove unused INPUT_UPDATE_NONE 2013-04-17 23:13:44 +03:00
Anatoliy Anischovich
23a3b08de9 audio input core: fix wrong parsing of replaygain tags (fix #8174)
Before dictionaries there was a loop, so if-else way was ok, but not now. Also, locale-dependent atof().
Remove unnecessary replaygain stuff from flac demuxer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2013-03-10 17:19:08 +01:00
Rémi Denis-Courmont
72499a50a3 input: define proper controls for menu navigation 2013-02-01 17:54:34 +02:00