lib: change libvlc_media_discoverer_t creation
authorThomas Guillem <thomas@gllm.fr>
Thu, 8 Jan 2015 16:10:00 +0000 (16:10 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 13 Jan 2015 22:28:17 +0000 (23:28 +0100)
commitfa7924acb3613ab69c5221517391134623f68fd9
treef5e9e176f7586767d7f69c2d69d01b1c6b5b344b
parente5de71d0643498aa82aba38ddfc4d3cc295ef20f
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>
NEWS
include/vlc/libvlc_media_discoverer.h
lib/libvlc.sym
lib/media_discoverer.c