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

190 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
3d6f1d93f0 Unexport input_DecoderNew and input_clock_t
Since input_clock_t cannot be created/used from plugins, the extra
functionality of input_DecoderNew() from the new input_DecodeCreate()
is not interesting in plugins.

(Yes, I know I suck as function names)
2011-04-04 20:27:22 +03:00
Rémi Denis-Courmont
c2a6c69154 input_DecoderCreate: create a decoder w/o input thread
This still requires input resources. But that should not be a problem
as the needed functions are already exposed (for libvlc).

Statistics, subpictures and input events do not work when a decoder is
created in this manner.
2011-04-04 20:21:40 +03:00
Ilkka Ollakka
57766ff347 refactor rate(,-faster,-slower) to playlist
Thisway we don't reset playback rate between items
2010-10-04 21:28:59 +03:00
Ilkka Ollakka
e575df71f5 fix documentation INPUT_GET_VOUTS actually uses size_t* than int* 2010-07-20 15:22:08 +03:00
Rémi Duraffort
5ca3019168 includes: add some more LIBVLC_USED. 2010-07-15 23:44:49 +02:00
Laurent Aimar
a8f019f230 Added a ref count on input_resource_t.
It should fix invalid accesses of input_resource_t using input_GetVout/Aout.
2010-06-17 23:57:02 +02:00
Rémi Duraffort
4a549c8b8d input: constify. 2010-06-12 07:52:59 +02:00
Rémi Denis-Courmont
12256be1f2 Export input_resource_TerminateVout
LibVLC needs it.
2010-06-08 21:04:18 +03:00
Laurent Aimar
211f72ff01 Made object created by input_resource attached to a high level object.
The high level object must at least live as long as the input_resource,
I used playlist, vlm or libvlc_media_player.
 It avoids invalid reparent of the vout, aout and sout on input changes.

 It breaks support for per input options used for creating vout, aout
and sout (:sout= is not impacted). I will fix the vout case.

 It breaks invalid usages of vlc_object_find(INPUT, PARENT) used
at least by :
 - the sout modules describe and display.
 - the sout statistics.
 - the vout splitter change
 - the snapshot vout display.
I will fix the vout related ones.
2010-05-25 20:47:49 +02:00
Rémi Denis-Courmont
552367122c Constify (fixes #1391) 2010-03-09 23:48:58 +02:00
Rémi Denis-Courmont
998ebb85fd input: remove leading underscores 2010-02-07 13:33:50 +02:00
Laurent Aimar
028ea651e5 Extended input_GetPcrSystem to also return the current delay. 2010-02-06 16:24:19 +01:00
Laurent Aimar
68fe87d720 Added INPUT_REPLACE_INFOS and INPUT_MERGE_INFOS. 2010-02-05 23:23:12 +01:00
Laurent Aimar
709d0455ce Added input_GetPcrSystem/input_ModifyPcrSystem. 2010-02-02 21:25:18 +01:00
Laurent Aimar
6a18a30adf Added input_GetEsObjects() to cleanly retreive ES objects (decoder, vout, aout). 2010-01-31 01:39:41 +01:00
Rémi Denis-Courmont
ce67728ae1 Stick b_error to object types that actually use it 2010-01-28 21:19:55 +02:00
Francois Cartegnie
9ae152ce22 fix empty declaration warning 2010-01-18 20:14:47 +02:00
Pierre d'Herbemont
9a00da44cb meta: Make vlc_meta_t an opaque structure and move a bunch of static inline function to their private .c files. 2010-01-06 16:28:54 +01:00
Laurent Aimar
368b4f25dc Added INPUT_EVENT_ITEM_EPG event. 2009-12-20 23:23:27 +01:00
Rémi Denis-Courmont
e87dd9f0fd Convert "rate" variable to float everywhere
This follows the historical LibVLC semantic (and new --rate one), so
bigger is faster. In the process, simplify a few code paths, especially
those in LibVLC, but make many other code paths more complicated due to
integer<->float conversion. Most of those paths could probably be
simplified.

 * Fix RC "fastforward" command behaviour (it was slowing down instead)
 * Fix str_format_mera 'R' format string with negative rates and
   rates such that (rate % 1000 < 100).
2009-11-23 19:03:11 +02:00
Laurent Aimar
c2766f8b45 Removed b_block parameter from input_Read.
It is unused and not correctly implemented (!b_block case).
2009-09-14 23:27:28 +02:00
Niles Bindel
1ce2223d32 Add input resource support to the LibVLC Media Player
This change allows for smoother transitioning between playlist items by
not having to recreate the related video/audio resources from scratch on
every item switch. This problem was very apparent in fullscreen mode
when the current display would close out showing the OS background and
then go back to fullscreen before playing the next item.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-08-26 21:05:55 +03:00
Rémi Denis-Courmont
71d32071ce get vout: use size_t for the counter
Internal counter is still int due to tab macros.
2009-08-15 17:08:41 +03:00
Laurent Aimar
768bd8a4d8 Split INPUT_EVENT_TIMES into INPUT_EVENT_POSITION/LENGTH.
It allows a finer control on what to update (for gui).
2009-05-11 22:17:54 +02:00
Laurent Aimar
80684e7846 Fixed a race condition with input creation and events.
input_CreateThread* have been splitted in two functions:
 - input_Create
 - input_Start
to allow attaching to input events and creating settings/variables
before starting the input thread.

For consistency, input_StopThread has been renamed input_Stop.

Initial report from Hugo Beauzee-Luyssen.
2009-05-08 02:12:39 +02:00
Laurent Aimar
ba4c4c1915 Fixed decoder spacing mode selection.
Becarfull it breaks the API by modifying input_DecoderDecode prototype.
(only stream_output display module use it).
2009-04-28 18:59:41 +02:00
Laurent Aimar
4792f4d85e Modify INPUT_RECORD_PREFIX value (prefer h/m/s over : ). 2009-03-29 14:11:32 +02:00
Laurent Aimar
8236d4c98f Added a INPUT_EVENT_ABORT event to detect user requested abort. 2009-03-09 20:48:18 +01:00
Laurent Aimar
04ee4c9fb3 Added a ES_OUT_SET_ES_SCRAMBLED_STATE to warn the user about scrambled es.
The input variable "program-scrambled" will contain the state for the current
program only. If at least one es is scrambled then the whole program is.
 The associated event is INPUT_EVENT_PROGRAM.
 If necessary for a better GUI support, we could change it to a list.
2009-03-08 19:30:38 +01:00
Laurent Aimar
d4e9d57d43 Changed "teletext-es" to be a list of teletext spu id.
This change is needed to fix teletext support.
2009-02-13 23:07:25 +01:00
Rémi Denis-Courmont
6041152954 Privatize input_Preparse 2009-02-11 23:11:44 +02:00
Rémi Denis-Courmont
491dd4238c *ahem* typo spotted by Antoine
(You get to love va_list type-safety)
2009-01-19 19:36:59 +02:00
Rémi Denis-Courmont
a426e6ab78 input_GetVout and input_GetAout helpers 2009-01-19 18:46:53 +02:00
Laurent Aimar
4d802e182e Split out input item from include/vlc_input.h. 2009-01-17 18:17:42 +01:00
Laurent Aimar
36edd71568 Renamed input_item_AddOpt to input_item_AddOption.
This will force people to use VLC_INPUT_OPTION_TRUSTED flag when they
need it and ease security review.
 This commit has no functionnal/security changes.
2009-01-17 18:17:42 +01:00
Laurent Aimar
0051f02857 Privatized p_input->b_can_pace_control. 2009-01-17 12:35:48 +01:00
Laurent Aimar
c63257e2bf Privatized p_input->i_state. 2009-01-17 12:35:48 +01:00
Laurent Aimar
93acbebb6c Privatized p_input->i_time. 2009-01-17 12:35:48 +01:00
Laurent Aimar
7ccd46a8a0 Privatized i_pts_delay (input_thread_t). 2009-01-16 21:07:48 +01:00
Laurent Aimar
ab85aafbf4 Added missing const to input_item_SetURI. 2009-01-07 20:29:16 +01:00
Laurent Aimar
ba2c2b69c9 Allows requesting active aout/vout from an input with associated events. 2009-01-05 20:49:15 +01:00
Laurent Aimar
b2efc40a95 Added INPUT_EVENT_DEAD event. 2009-01-05 20:49:11 +01:00
Laurent Aimar
cd728cd06e Do not use 2 event manager in input. 2008-12-11 23:03:32 +01:00
Laurent Aimar
44a1dd652e Moved stream record to its own module. 2008-12-09 21:13:03 +01:00
Laurent Aimar
132855ebcf Fixed input_get_event_manager naming scheme. 2008-12-09 21:13:02 +01:00
Laurent Aimar
e03ea0d7fc Fixed input_AddSubtitle(s) coherency. 2008-12-09 21:13:02 +01:00
Laurent Aimar
da0ee427cf Fixed ppsz_input_state in RC after input state changes. 2008-12-09 21:13:01 +01:00
Laurent Aimar
31715344b7 Removed obsolete BUFFERING_S input state.
The associated libvlc_MediaPlayerBuffering and libvlc_Buffering value could
probably be removed (not done as I do not know the maintainer opinion).
2008-12-04 22:59:32 +01:00
Laurent Aimar
2d98c228d6 Added a input "cache" variable and INPUT_EVENT_CACHE event.
They will allow interfaces to display the current buffering status.
2008-12-04 22:56:11 +01:00
Laurent Aimar
f593c8f08c Removed unused STOP_S input state.
The associated libvlc_MediaPlayerStopped and libvlc_Stopped value could
probably be removed (not done as I do not know the maintainer opinion).
2008-12-04 22:36:37 +01:00