Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Romain Vimont
9bdfb35108
vlc_input_item: export RemoveNode()
The function input_item_node_RemoveNode(), declared in vlc_input_item.h,
was not exported (contrary to input_item_node_AppendNode()).
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Romain Vimont
34bc82b42c
input item: add a locked version of GetMeta()
Expose a function which does not lock internally so that we can retrieve
several meta values in a row without locking/unlocking.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Steve Lhomme
16e1cf1512
vlc_input_item: fix the documentation of the duration
8 years ago
Romain Vimont
7725b10254
fetcher: provide events in callbacks
Notify "fetch ended" in callbacks.
This will allow to move the "preparse ended" trigger from the fetcher to
the preparser, and make the fetcher more independant.
8 years ago
Romain Vimont
812579453b
preparser: provide events in callbacks
The input thread used by the preparser is not exposed to the caller.
Add a "callbacks" parameter to receive preparsing events.
8 years ago
Steve Lhomme
241f4af975
input:item: the duration for card items is indefinite
(aka not finite)
8 years ago
Steve Lhomme
b1d0b2a337
vlc_input_item: remove INPUT_DURATION_ZERO
If a duration is explicitly 0 (an item that won't play any content) then it can
be set to 0 directly.
8 years ago
Steve Lhomme
72466c75ec
vlc_input_item: rename INPUT_DURATION_UNKNOWN to INPUT_DURATION_INDEFINITE
For sources with no exact time limits, therefore it should not be used as such.
8 years ago
Steve Lhomme
4cc81c5165
vlc_input_item: rename INPUT_DURATION_INVALID to INPUT_DURATION_UNSET
A duration cannot be invalid and the define is used for items where a duration
should not be set like nodes and directories.
It's also used by input_item_New() on items that don't have the duration when
the source is parsed by may get it when parsed in the input thread.
8 years ago
Steve Lhomme
9f5bc6c6be
vlc_input_item: add documentation on what the duration values stand for
8 years ago
Steve Lhomme
887b2e0a78
input:item: use a define for vlc://nop
So we can document what it means
8 years ago
Steve Lhomme
b4fd2a7ebf
input:item: store the item type with the enum
8 years ago
Steve Lhomme
ef8a6e0702
vlc_input_item: add a define for the unset duration
8 years ago
Steve Lhomme
a9ab0f385c
vlc_input_item: add a define for the known zero duration
VLC_TS_INVALID was used but in most cases the value is 0 on purpose
8 years ago
Steve Lhomme
9646718660
vlc_input_item: add a define for the invalid duration
It's likely 0 that was intented
8 years ago
Steve Lhomme
1f17997348
rename VLC_TS_INVALID to VLC_TICK_INVALID
8 years ago
Hugo Beauzée-Luyssen
c3a7a890fc
vlc_input_item: Add missing input_item_Get/SetDiscTotal
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Rémi Denis-Courmont
517a7e7b3f
input item: use vlc_list for per-category infos
8 years ago
Steve Lhomme
cdf1e00627
vlc_input_item: fix unknown duration value
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 years ago
Rémi Denis-Courmont
c624707de2
input item: remove constant stat fields
8 years ago
Rémi Denis-Courmont
8ac0bd4462
input item: remove unused stats members
8 years ago
Rémi Denis-Courmont
cc70e92424
stats: remove the lock
The containing input item lock already must be held while reading or
writing statistics, so this is redundant.
8 years ago
Jean-Baptiste Kempf
bbb1bcebec
Add sami extension for auto-loading of subs
8 years ago
Jean-Baptiste Kempf
57d6ef0301
Input-Slave: remove .txt and .utf8 as auto-loaded subtitles
8 years ago
Thomas Guillem
55b62a9b34
input: attach slaves to master only
The previous logic was wrong. An input item is not necessarily a master if it's
not a slave.
Fixes #19208
8 years ago
Thomas Guillem
c7a229ab34
input: use bsearch in input_item_slave_GetType
8 years ago
Francois Cartegnie
d58ffc5afd
input: add webvtt in spu exts
9 years ago
Francois Cartegnie
a76ddcecb5
input: missing comma in spu exts
9 years ago
Thomas Guillem
877b09d309
input: item: add mp3 as possible slave
Refs #18913
9 years ago
Thomas Guillem
780bf2cf51
libvlc: add "extractor-flatten" option
Used to force extractors to flatten their file listing (done automatically by
vlc_readdir_helper helper).
9 years ago
Thomas Guillem
4ce1905da0
input: extends vlc_readdir_helper_additem()
Add a new parameter: psz_flatpath. If not NULL, readdir_helper_additem() will
un-flatten the folder hierarchy. It will create an input item for each sub
folders (separated by '/') of psz_nullpath.
Example: a stream directory that have the following items:
- "foo/bar/item1"
- "foo/bar/item2"
will output the following items while using this new parameter:
- foo
- bar
- item1
- item2
This functionality can be used by "stream directory" modules that have a
flattened folder hierarchy, like libarchive.
Access modules should not need this functionality.
9 years ago
Thomas Guillem
13eb6c56f9
input: use size_t
9 years ago
Thomas Guillem
e4a403d78b
input: rename access_fsdir to vlc_readdir_helper
This helper can now be used by other modules like "stream directory".
9 years ago
Thomas Guillem
c458178af2
input: move access_fsdir to input/item.c
9 years ago
Francois Cartegnie
f97ba7b82d
demux: subtitle: add support for SCC
9 years ago
Rémi Denis-Courmont
e24b5fd5dc
input: privatize input_item_node_PostAndDelete (refs #17652 )
9 years ago
Rémi Denis-Courmont
e2ced46523
input: remove input_item_PostSubItem() (refs #17652 )
9 years ago
Rémi Denis-Courmont
d2eaa0d2df
input: remove input_item_node_t.p_parent
9 years ago
Rémi Denis-Courmont
15769b48c4
input: add explicit input_item_node_RemoveNode()
This is rarely used (only once in the whole code base).
9 years ago
Rémi Denis-Courmont
2c6f604e3d
input: remove the vlc_InputItemSubItemAdded event
9 years ago
Rémi Denis-Courmont
f4bb458815
Replace vlc_gc_decref() with input_item_Release()
9 years ago
Rémi Denis-Courmont
763cea5e20
Replace vlc_gc_incref() with input_item_Hold()
9 years ago
Rémi Denis-Courmont
5940b2224f
input: remove unused typedef
9 years ago
Francois Cartegnie
ac6badf2a4
add ttml as slave spu extension
9 years ago
Francois Cartegnie
003443e038
input: add input_item_SetEpgTime
9 years ago
Francois Cartegnie
e25885c16d
input: item: point to store current epg table
9 years ago
Rémi Denis-Courmont
9b1ac09c99
input: remove input_item_node_t.pf_compar
9 years ago
Rémi Denis-Courmont
4860e4e3b0
input: remove constant input_item_node_t.b_can_loop
9 years ago