Commit 94a21935 authored by Thomas Guillem's avatar Thomas Guillem

lib: media_discoverer: stop after sending events

parent b2fa4ce4
......@@ -234,8 +234,6 @@ libvlc_media_discoverer_start( libvlc_media_discoverer_t * p_mdis )
LIBVLC_API void
libvlc_media_discoverer_stop( libvlc_media_discoverer_t * p_mdis )
{
vlc_sd_Stop( p_mdis->p_sd );
p_mdis->running = false;
libvlc_media_list_t * p_mlist = p_mdis->p_mlist;
......@@ -246,6 +244,8 @@ libvlc_media_discoverer_stop( libvlc_media_discoverer_t * p_mdis )
libvlc_event_t event;
event.type = libvlc_MediaDiscovererEnded;
libvlc_event_send( p_mdis->p_event_manager, &event );
vlc_sd_Stop( p_mdis->p_sd );
}
/**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment