[vlc-devel] commit: libvlc: Fix media discoverer with category. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Dec 5 16:42:29 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 3 12:11:05 2009 +0100| [cf8fe3c0f4c1d525661be199f590389d9fdd137e] | committer: Pierre d'Herbemont
libvlc: Fix media discoverer with category.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf8fe3c0f4c1d525661be199f590389d9fdd137e
---
src/control/media_discoverer.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/control/media_discoverer.c b/src/control/media_discoverer.c
index 0a3123e..f1a2a4e 100644
--- a/src/control/media_discoverer.c
+++ b/src/control/media_discoverer.c
@@ -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 );
}
/**************************************************************************
More information about the vlc-devel
mailing list