[vlc-commits] lib: media_discoverer: release list after stop
Thomas Guillem
git at videolan.org
Mon Jun 13 13:26:31 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 13 13:24:33 2016 +0200| [d32fd68422701c87a25b58e90c55168555b01d11] | committer: Thomas Guillem
lib: media_discoverer: release list after stop
since stop() can use the list to send events.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d32fd68422701c87a25b58e90c55168555b01d11
---
lib/media_discoverer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/media_discoverer.c b/lib/media_discoverer.c
index d637189..55e5c95 100644
--- a/lib/media_discoverer.c
+++ b/lib/media_discoverer.c
@@ -292,13 +292,13 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis )
services_discovery_removeall,
p_mdis );
- libvlc_media_list_release( p_mdis->p_mlist );
-
if( p_mdis->running )
libvlc_media_discoverer_stop( p_mdis );
vlc_sd_Destroy( p_mdis->p_sd );
+ libvlc_media_list_release( p_mdis->p_mlist );
+
/* Free catname_to_submedialist and all the mlist */
char ** all_keys = vlc_dictionary_all_keys( &p_mdis->catname_to_submedialist );
for( i = 0; all_keys[i]; i++ )
More information about the vlc-commits
mailing list