]> git.sesse.net Git - vlc/commitdiff
libvlc: Fix media discoverer with category.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 3 Dec 2009 11:11:05 +0000 (12:11 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sat, 5 Dec 2009 15:42:08 +0000 (16:42 +0100)
src/control/media_discoverer.c

index 0a3123e5d041c5d344ba46e0e6fcff077d615157..f1a2a4e1f520cda9b832d31c65f9bee57e27c0b5 100644 (file)
@@ -96,12 +96,10 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
             libvlc_media_release( p_catmd );
         }
     }
-    else
-    {
-        libvlc_media_list_lock( p_mlist );
-        _libvlc_media_list_add_media( p_mlist, p_md, NULL );
-        libvlc_media_list_unlock( p_mlist );
-    }
+
+    libvlc_media_list_lock( p_mlist );
+    _libvlc_media_list_add_media( p_mlist, p_md, NULL );
+    libvlc_media_list_unlock( p_mlist );
 }
 
 /**************************************************************************