1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00
Commit Graph

36 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
94105be6cf lib: actually return bool
This fixes the old int-for-bool return values from before 1.1.0 and the
later cargo culted ones.
2019-05-19 10:48:58 +03:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Hugo Beauzée-Luyssen
a9014afdac lib: Add thumbnailing support
Fix #17368
2018-11-12 17:09:05 +01:00
Rémi Denis-Courmont
9882ff2ece sd: move callbacks to constant structure 2018-06-10 15:11:25 +03:00
Rémi Denis-Courmont
eae5fe4b77 libvlc: remove deprecated SD functions 2018-05-03 15:25:37 +03:00
Rémi Denis-Courmont
26d96c355a libvlc: remove deprecated SD event manager 2018-05-03 15:25:37 +03:00
Filip Roséen
a1963944d4 lib/media_discoverer: libvlc_media_discoverer_release: simplify
Instead of getting all the dictionary keys, and iterating over them to
get the associated values, only to free/release the associated data;
use vlc_dictionary_clear together with a callback to handle the work
for us.

These changes also fixes a potential null-pointer dereference if the
previous usage of vlc_dictionary_all_keys failed.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2017-05-18 19:05:59 +03:00
Rémi Denis-Courmont
f5ae20095a lib: media_discoverer: allocate event manager in-place 2017-05-15 21:33:39 +03:00
Rémi Denis-Courmont
a995ddeef7 sd: add proper item tree support
This adds explicit tree support to the SD callback and the
corresponding playlist back-end.
2017-05-14 18:44:13 +03:00
Rémi Denis-Courmont
747a44649f sd: remove services_discovery_GetLocalizedName() 2016-11-15 20:01:58 +02:00
Rémi Denis-Courmont
6d37075224 sd: merge Create and Start, and Stop and Destroy
Without the legacy event handler, the distinction is superfluous.
2016-11-14 22:01:27 +02:00
Rémi Denis-Courmont
f7ff969d3b sd: use owner structure instead of legacy event manager
Since there are always exactly one callback per event (the owner´s),
this is much simpler. This also removes unhandled error cases, and
provides more straightforward callback prototypes.
2016-11-14 21:50:40 +02:00
Rémi Denis-Courmont
74acdbca75 sd: remove RemoveAll events
This was never triggered.
2016-11-14 20:35:57 +02:00
Filip Roséen
2c557116ca lib/media_discovery: narrower scope of iteration variable
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-10-13 11:09:29 +02:00
Thomas Guillem
4bcaa27319 libvlc: media_discoverer: remove usage of ssize_t
It's in POSIX but not in C standard.
2016-09-27 13:47:24 +02:00
Thomas Guillem
b0984a632f libvlc: add missing "_t" in media_discoverer structs/enums
For the sake of coherence.
2016-07-20 13:44:12 +02:00
Thomas Guillem
74f3deabb4 libvlc: use ssize_t/size_t for the count of the media discoverer list 2016-07-20 13:23:55 +02:00
Thomas Guillem
d32fd68422 lib: media_discoverer: release list after stop
since stop() can use the list to send events.
2016-06-13 13:25:43 +02:00
Thomas Guillem
94a2193589 lib: media_discoverer: stop after sending events 2016-06-13 13:25:00 +02:00
Thomas Guillem
42f6419ab0 lib: media_discoverer: don't listen to Started/Ended events
These events are useless and are only triggered when calling vlc_sd_Start() and
vlc_sd_Stop().
2016-06-10 14:39:06 +02:00
Thomas Guillem
463b4aa9b2 lib: media_discoverer: fix media leak 2016-06-10 14:39:06 +02:00
Thomas Guillem
09f8d87f47 media_discoverer: fix memory corruption when listing services 2016-06-10 11:58:22 +02:00
Thomas Guillem
440fcfd7b1 libvlc: libvlc_media_discoverer_stop returns nothing 2016-06-09 11:02:19 +02:00
Jean-Baptiste Kempf
d1458c92a8 libVLC: rename libvlc_media_discoverer_services_get
to libvlc_media_discoverer_list_get and do the same for release
2016-02-11 17:57:35 +01:00
Thomas Guillem
e744df4cc5 libvlc: add libvlc_media_discoverer_services_get
This function return the list of services discovery handled by libVLC.
2016-02-11 15:39:18 +01:00
Rémi Denis-Courmont
5fb1ac638e lib: remove libvlc_event_manager_register_event_type() 2015-08-05 21:30:49 +03:00
Rémi Denis-Courmont
7f4edacfd2 event: remove unused instance libvlc_event_manager_new() parameter 2015-08-05 19:08:03 +03:00
Rémi Denis-Courmont
475d6019b3 lib: retain/release the instance more consistently
All objects with a pointer back to the instance ought to retain a
reference to it (which currently means pretty much all objects).
2015-08-05 19:08:02 +03:00
Thomas Guillem
1723d7e97f libvlc: add libvlc_MediaListEndReached event
Expose an event to libvlc users which allows them to get notified when a media
list reached the end. That is, when the media list is attached to a media
(subitems) that completed a parsing. Or when the media list is attached to a
media discovery that stopped.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-01-20 11:20:28 +01:00
Thomas Guillem
9b2c414cc6 libvlc: don't use functions with leading underscore
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2015-01-20 08:17:18 +02:00
Thomas Guillem
fa7924acb3 lib: change libvlc_media_discoverer_t creation
libvlc_media_discoverer_new_from_name was creating a services_discovery_t and
was starting it, so libvlc_MediaDiscovererStarted event (or any other events)
could not be received.

To fix that, Split libvlc_media_discoverer_new_from_name into
libvlc_media_discoverer_new and libvlc_media_discoverer_start. That way, we can
attach events between create and start.

libvlc_media_discoverer_new_from_name is now deprecated, but it still works
like before.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-01-13 23:28:17 +01:00
Rémi Denis-Courmont
20e97e7b8d lib: refuse to instantiate podcast SD
It only works with dedicated hooks in the VLC UI at this point.
2013-04-23 22:19:38 +03:00
Jean-Baptiste Kempf
20aa87848c lib: kill a warning 2012-09-15 15:17:10 +02:00
Edward Wang
561d5ca2c0 Export services_discovery_RemoveAll
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-16 00:46:02 +01: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
7dcac68447 Move src/control/ to lib/ 2011-08-30 23:40:34 +03:00