1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-31 06:46:39 +02:00
Commit Graph

68 Commits

Author SHA1 Message Date
Francois Cartegnie
e25885c16d input: item: point to store current epg table 2016-12-28 11:13:09 +01:00
Rémi Denis-Courmont
9b1ac09c99 input: remove input_item_node_t.pf_compar 2016-11-21 21:33:43 +02:00
Rémi Denis-Courmont
4860e4e3b0 input: remove constant input_item_node_t.b_can_loop 2016-11-21 21:13:25 +02:00
Rémi Denis-Courmont
ef49326ff5 input: remove iput_item_t.i_id 2016-11-15 22:04:39 +02:00
Thomas Guillem
410431432e input: force subtitles coming from subtitles_Detect
This restore an historical behavior that was removed with input slaves patches.
2016-06-05 17:02:54 +02:00
Thomas Guillem
dbf1a3b444 core: add libvlc_MetadataCancel 2016-06-05 12:57:32 +02:00
Thomas Guillem
ed11de7b82 core: extend libvlc_MetaRequest and rename it
This function can now pass a timeout and an unique id that can be used to
cancel requests pushed with this id.

Rename it because Meta is too meta.
2016-06-05 12:57:17 +02:00
Thomas Guillem
f93621c6d5 preparser: add a timeout in playlist_preparser_Push
By default, the timeout is 5 seconds, see "preparse_timeout" option.
2016-06-05 12:52:18 +02:00
Thomas Guillem
fcc5088b36 input/item: add more audio slaves 2016-05-19 16:23:03 +02:00
Benjamin Adolphi
3d227df732 input/item: add slave entries
An input_item_t can now have a list of slaves. These slaves will be loaded when
the input_item_t is loaded by an input_thread_t.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2016-05-19 15:55:27 +02:00
Thomas Guillem
01d3be267b preparser: send a status code on PreparseEnded 2016-04-17 08:13:53 +03:00
Thomas Guillem
e49ee59ad9 input/item: factor input_item_t New*() functions
Remove "int options, const char *const *options, unsigned option_flags"
arguments from every New() functions since these args are mainly unused. You
now have to call input_item_AddOptions after input item creation to add
options.

Add input_item_net_type enum in order to avoid confusion between 2 int
arguments: i_duration and i_net that could both be -1, 0 or > 0.

Replace input_item_NewWithType and input_item_NewWithTypeExt with
input_item_NewExt.

Add input_item_NewCard, input_item_NewDisc, input_item_NewStream,
input_item_NewDirectory, input_item_NewFile MACRO. These MACROS avoid to use
useless arguments for an item type (for example, it's useless to specify a
duration for a directory type).
2016-04-17 08:11:57 +03:00
Thomas Guillem
a6fa668648 input/item: add input_item_AddOptions 2016-04-17 08:01:52 +03:00
Thomas Guillem
03d6455106 input/item: correctly invert CopyOptions argument order
Do not add a const qualifier for the p_parent since mutexes operations are not
const. Forgot to invert one call in input_item_Copy.
2016-04-14 10:01:44 +02:00
Rémi Denis-Courmont
62131e9390 Revert "input/item: invert CopyOptions argument order"
This reverts commit 1d8338cdb4, which is
obviously wrong.
2016-04-13 22:16:27 +03:00
Thomas Guillem
1d8338cdb4 input/item: invert CopyOptions argument order
Add a const qualifier for the source and make the code less angrrrrrrrry.
2016-04-11 15:48:04 +02:00
Eric Engestrom
f9f71a6f2b include: fix spelling mistakes
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2016-04-02 18:11:52 +03:00
Wieland Hoffmann
03b90ce5f3 playlist: Allow sorting by disc number
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-02-29 15:03:46 +01:00
Thomas Guillem
fb7313e0ca input: add a META_REQUEST flag to force user interaction
It this flag is set, user interaction will be forced when preparsing the item
given by libvlc_MetaRequest (there won't be user interactions for sub items).
2016-02-04 15:05:00 +01:00
Hugo Beauzée-Luyssen
007f2bdfcc vlc_input_item: Add AlbumArtist getter/setter 2016-01-28 13:09:43 +01:00
Thomas Guillem
e4b58df621 playlist: don't play directories that can loop into themselves 2015-05-20 16:07:32 +02:00
Thomas Guillem
0b79f865b6 input: add input_item_node_Sort
Sort all p_item children of the node recursively.
2015-05-20 16:07:32 +02:00
Rémi Denis-Courmont
2822a77846 input: add support for pointer options to input item
Pointers cannot be inherited as normal configuration item for somewhat
obvious reasons. For output parameters, this is not much of an issue as
LibVLC sets the pointer values directly on its media player object. But
for input-related parameters, LibVLC would need to store pointer values
in the media item. Thus this change to input items.

Note that pointers are considered intrinsically unsafe, so there are no
flags for the time being.
2015-03-30 23:02:13 +03:00
Rémi Denis-Courmont
f640890df3 input: move var_OptionParse() code to item.c 2015-03-30 21:17:04 +03:00
Thomas Guillem
1e9e0e3cb9 input: drop ITEM_TYPE_CDDA
Since it's not used anymore.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-03-25 15:29:57 +01:00
Thomas Guillem
4455e6d293 input: handle recursive parsing in preparser
Add i_preparse_depth in input_item to handle how many level of sub items can be
parsed.

The "recursive" option is now moved from access/file to the playlist category.

You can now abort a long local directory opening.

NET items won't be parsed recursively since playlist_preparser_Push is not
called with the META_REQUEST_OPTION_SCOPE_NETWORK argument.

Fixes #13850
Fixes #11921
Fixes #13872

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-03-25 15:29:57 +01:00
Thomas Guillem
4089c841cc input: add b_net variable in item
When an item was a NET/STREAM type, there was no way to distinguish if the item
was a file, a playlist or directory.

Add a new variable, b_net in addition to i_type. This variable is automatically
set when creating a new Item (set to true for ITEM_TYPE_STREAM). It can be
overridden via the new input_item_NewWithTypeExt function. This new function
will allow accesses to create FILE, or DIRECTORY items with b_net set to true.

Unless forced, the preparser won't parse items with b_net == true.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-03-25 15:29:57 +01:00
Thomas Guillem
bd669141be input: replace ITEM_TYPE_NET by ITEM_TYPE_STREAM
This type is set for streams (rtsp, httplive, mms...).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-03-25 15:29:57 +01:00
Ludovic Fauvet
d4ccd7a5b4 Fix broken NowPlaying (close #9960, #11796, #12850)
Prevent the es_out from overriding the NowPlaying state by splitting
the meta into NowPlaying and ESNowPlaying.

The function input_item_GetNowPlayingFb can be used to return the
preferred meta value.
2014-12-18 11:27:25 +01:00
Rémi Denis-Courmont
9e7dd0b49f playlist: move i_nb_played to playlist item, not the input item
This is accessed with the playlock lock anyway.
2014-08-16 13:05:39 +03:00
Rémi Denis-Courmont
eb52eceec7 input item: remove b_fixed name, always false 2014-08-15 18:33:48 +03:00
David Fuhrmann
5beb533ff0 Revert "src/input: add a new input option flag to replace values of existing options"
This code was superseded by another approach and is not used anymore.

This reverts commit ba82f10c71.
2014-05-22 11:13:16 +02:00
Francois Cartegnie
44c6d7926c meta_fetcher: rename as scope and set values 2014-05-21 19:24:22 +02:00
Francois Cartegnie
41af9ab209 update meta request API to allow overriding 2014-05-19 12:02:41 +02:00
David Fuhrmann
ba82f10c71 src/input: add a new input option flag to replace values of existing options
This flag can be used with input_item_AddOption to replace the value
of an input option, if this option already exists. Otherwise, the
new option is added as usual.

refs #11471
2014-05-13 21:05:32 +02:00
David Fuhrmann
fb18dbad69 include/vlc_input_item: correct misleading documentation about VLC_INPUT_OPTION_UNIQUE 2014-05-13 20:48:09 +02:00
Jean-Baptiste Kempf
2396ab526d Add new meta types for film info 2014-02-06 18:10:56 +01:00
Rémi Denis-Courmont
ff8e722307 playlist: add playlist-independent functions for meta data handling
This really only depends on the input item(s) and the core.
2013-12-31 20:26:56 +02:00
Rémi Denis-Courmont
804defccf8 Move input_item_array_t to <vlc_input_item.h> 2013-12-31 19:40:06 +02:00
Jean-Baptiste Kempf
4962f70280 Meta: add a tracktotal value 2012-06-12 01:49:29 +02:00
Rémi Denis-Courmont
da623e2558 input: private input item reference count
(And remove an useless constant function pointer.)
2012-05-13 20:28:00 +03:00
Jean-Baptiste Kempf
36ab287e77 LGPL
Re-license almost all of libVLC and libVLCcore to LGPLv2.1+

This move was authorized by the developers, either:
 - by e-mail,
 - by vote at the VideoLAN Dev Days 2011,
 - on the license website,
 - in a contract, oral or written.
No objection was raised, so far.

The developers agreeing are:
  Justus Piater
  Alexis Ballier
  Alexander Bethke
  Mohammed Adnène Trojette
  Alex Converse
  Alexey Sokolov
  Alexis de Lattre
  Andre Pang
  Anthony Loiseau
  Cyril Deguet
  André Weber
  Boris Dorès
  Brieuc Jeunhomme
  Benjamin Drung
  Hugo Beauzée-Luyssen
  Benoit Steiner
  Benjamin Pracht
  Bernie Purcell
  Przemyslaw Fiala
  Arnaud de Bossoreille de Ribou
  Brad Smith
  Nick Briggs
  Christopher Rath
  Christophe Courtaut
  Christopher Mueller
  Clement Chesnin
  Andres Krapf
  Damien Fouilleul
  David Flynn
  Sebastien Zwickert
  Antoine Cellerier
  Jérôme Decoodt
  Jérome Decoodt
  Dylan Yudaken
  Eduard Babayan
  Eugenio Jarosiewicz
  Elliot Murphy
  Eric Petit
  Erwan Tulou
  Etienne Membrives
  Ludovic Fauvet
  Fabio Ritrovato
  Tobias Güntner
  Jakub Wieczorek
  Frédéric Crozat
  Francois Cartegnie
  Laurent Aimar
  Florian G. Pflug
  Felix Paul Kühne
  Frank Enderle
  Rafaël Carré
  Simon Latapie
  Gildas Bazin
  Geoffroy Couprie
  Julien / Gellule
  Gildas Bazin
  Arnaud Schauly
  Toralf Niebuhr
  Vicente Jimenez Aguilar
  Derk-Jan Hartman
  Henri Fallon
  Ilkka Ollakka
  Olivier Teulière
  Rémi Duraffort
  Jakob Leben
  Jean-Baptiste Kempf
  Jean-Paul Saman
  Jean-Philippe Grimaldi
  Jean-François Massol
  Gaël Hendryckx
  Jakob Leben
  Jean-Marc Dressler
  Jai Menon
  Johan Bilien
  Johann Ransay
  Joris van Rooij
  JP Dinger
  Jean-Philippe André
  Adrien Grand
  Juha Jeronen
  Juho Vähä-Herttua
  Kaarlo Raiha
  Kaarlo Raiha
  Kamil Baldyga
  Keary Griffin
  Ken Self
  KO Myung-Hun
  Pierre Ynard
  Filippo Carone
  Loïc Minier
  Luca Barbato
  Lucas C. Villa Real
  Lukas Durfina
  Adrien Maglo
  Marc Ariberti
  Mark Lee
  Mark Moriarty
  Martin Storsjö
  Christophe Massiot
  Michel Kaempf
  Marian Ďurkovič
  Mirsal Ennaime
  Carlo Calabrò
  Damien Lucas
  Naohiro Koriyama
  Basos G
  Pierre Baillet
  Vincent Penquerc'h
  Olivier Aubert
  Pankaj Yadav
  Paul Corke
  Pierre d'Herbemont
  Philippe Morin
  Antoine Lejeune
  Michael Ploujnikov
  Jean-Marc Dressler
  Michael Hanselmann
  Rafaël Carré
  Ramiro Polla
  Rémi Denis-Courmont
  Renaud Dartus
  Richard Shepherd
  Faustino Osuna
  Arnaud Vallat
  Rob Jonson
  Robert Jedrzejczyk
  Steve Lhomme
  Rocky Bernstein
  Romain Goyet
  Rov Juvano
  Sam Hocevar
  Martin T. H. Sandsmark
  Sebastian Birk
  Sébastien Escudier
  Vincent Seguin
  Fabio Ritrovato
  Sigmund Augdal Helberg
  Casian Andrei
  Srikanth Raju
  Hannes Domani
  Stéphane Borel
  Stephan Krempel
  Stephan Assmus
  Tony Castley
  Pavlov Konstantin
  Eric Petit
  Tanguy Krotoff
  Dennis van Amerongen
  Michel Lespinasse
  Can Wu
  Xavier Marchesini
  Sébastien Toque
  Christophe Mutricy
  Yoann Peronneau
  Yohann Martineau
  Yuval Tze
  Scott Caudle
  Clément Stenac

It is possible, that some minor piece of code was badly tracked, for
some reasons (SVN, mainly) or that some small developers did not answer.
However, as an "œuvre collective", defined as in "CPI 113-2 alinéa 3",
and seeing "Cour. Cass. 17 Mai 1978", and seeing that the editor and
the very vast majority of developers have agreed (> 99.99% of the code,
> 99% of developers), we are fine here.
2011-11-27 22:54:33 +01:00
Rémi Denis-Courmont
629dbd8af1 Remove useless vlc_object parameter when creating an input item 2011-07-10 20:12:41 +03:00
Rémi Denis-Courmont
92f1b3aee7 Rename LIBVLC_* function attributes to VLC_* within plugin API 2011-05-07 23:08:28 +03:00
Rémi Denis-Courmont
6f258887aa Replace VLC_EXPORT macro with a simple prefix, VLC_API
This should help Doxygen parse VLC headers, and generally makes headers
easier to read. LibVLC already uses a similar approach.
2011-05-07 18:43:51 +03:00
Rémi Duraffort
4d85871d1b s/informations/information/ 2010-07-28 21:33:51 +02:00
Rémi Duraffort
5ca3019168 includes: add some more LIBVLC_USED. 2010-07-15 23:44:49 +02:00
Ilkka Ollakka
7f48382793 statistics to 64bit
Didn't touch the os x interface code. I don't think I missed any core-code that relates.
Fixe #3411
2010-07-14 21:37:54 +03:00
Jakob Leben
f21deb5f53 vlc_input_item.h is not self-sufficient without vlc_events.h 2010-06-11 19:45:33 +02:00
Jakob Leben
afcdbd2da4 input_item: remove b_prefers_tree
Nothing uses it and it is irrelevant after tree form and list form
playlist representations were joined.
2010-03-13 17:16:39 +01:00