control/media_discoverer.c: Fix a warning+bug.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 21:45:00 +0000 (21:45 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 21:45:00 +0000 (21:45 +0000)
src/control/media_discoverer.c

index 19ddb06..f2f735b 100644 (file)
@@ -135,7 +135,7 @@ libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis )
 libvlc_media_list_t *
 libvlc_media_discoverer_media_list( libvlc_media_discoverer_t * p_mdis )
 {
 libvlc_media_list_t *
 libvlc_media_discoverer_media_list( libvlc_media_discoverer_t * p_mdis )
 {
-    libvlc_media_list_retain( p_mdis->p_sd );
-    return p_mdis->p_sd;
+    libvlc_media_list_retain( p_mdis->p_mlist );
+    return p_mdis->p_mlist;
 }
 
 }