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

176 Commits

Author SHA1 Message Date
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
Laurent Aimar
73c96a164d Fixed input bookmark thread safety, support and event. 2008-12-04 20:34:07 +01:00
Laurent Aimar
4d60f5b6a7 Added a new INPUT_GET_BOOKMARK to allow future safe bookmark.
It removes the need of INPUT_GET_BYTE_POSITION/INPUT_SET_BYTE_SIZE which where
not thread safe.
2008-12-04 20:34:06 +01:00
Laurent Aimar
dce5697103 Renamed "seekable" into "can-seek" (for consistency). 2008-11-23 15:43:50 +01:00
Laurent Aimar
fac02ebd89 Removed intf-change-vout/rate-change/stats-change/intf-change. 2008-11-23 15:43:40 +01:00
Laurent Aimar
aa31cdc3ab Added INPUT_EVENT_TELETEXT. 2008-11-23 14:29:50 +01:00
Laurent Aimar
5a55a58984 Allows audio output users to control vout creation.
The input event vout now warns about every vout creation/destruction
due to a decoder.
2008-11-23 13:28:38 +01:00
Laurent Aimar
d6f0bd78c5 Clean up input events.
A new variable intf-event has been added.
It supercedes the following variables (they are still present for the
time being):
 - intf-change
 - intf-change-vout
 - rate-change
 - stats-change
and allows to have a better knowledge of the change done.

It is documented in vlc_input.h (in progress).
2008-11-22 16:36:43 +01:00
Laurent Aimar
56ba662f7b Clean up input_item_t functions and usages.
It fixes a bunch of missing locks and remove unused functions.
It splits input_internal.h
2008-11-22 16:29:55 +01:00
Laurent Aimar
6d56066a71 Move/clean up input event code to its own file.
There is no functionnal changes except a few missing events added.
2008-11-22 16:29:54 +01:00
Jean-Paul Saman
8623a9731e Allow minimum rate change upto 32/1 in input. 2008-11-21 10:22:47 +01:00
Laurent Aimar
7976ebd1f3 Moved INPUT_CONTROL_FIFO_SIZE to private header. 2008-11-20 19:45:11 +01:00
Jean-Paul Saman
57dda7ffd6 Remove FORWARD_S and BACKWARD_S from input state.
The input core does separate playing states for forward or backward direction from the playing state PLAYING_S. If one wants to know in what direction VLC is playing, then he needs to look at the sign value of the "rate" value. Backward playing direction has a negative "rate" value. Forward playing direction has a positive one.
2008-11-20 16:17:45 +01:00
Laurent Aimar
4c247f8af0 Give input_DecoderNew the clock used.
No functionnal changes yet.
2008-09-28 03:08:38 +02:00
Laurent Aimar
813a45953e Added signal-quality/strength input variables for access signal report.
They are set to -1 if not specified.
2008-09-28 03:08:36 +02:00