[vlc-devel] commit: libvlc: Missing unlock. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Jun 9 07:35:51 CEST 2009
vlc | branch: 1.0-bugfix | Pierre d'Herbemont <pdherbemont at free.fr> | Tue Jun 2 22:19:38 2009 -0700| [c683bfc6b83c76f7eb09e0ebd5d5aaed90a99b52] | committer: Pierre d'Herbemont
libvlc: Missing unlock.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c683bfc6b83c76f7eb09e0ebd5d5aaed90a99b52
---
src/control/media_list_player.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/control/media_list_player.c b/src/control/media_list_player.c
index 2b8cd35..10ee0fe 100644
--- a/src/control/media_list_player.c
+++ b/src/control/media_list_player.c
@@ -366,6 +366,13 @@ void libvlc_media_list_player_set_media_list(
{
vlc_mutex_lock( &p_mlp->object_lock );
+ if(!p_mlist)
+ {
+ libvlc_exception_raise( p_e, "No media list provided");
+ vlc_mutex_unlock( &p_mlp->object_lock );
+ return;
+ }
+
if( libvlc_media_list_player_is_playing( p_mlp, p_e ) )
{
libvlc_media_player_stop( p_mlp->p_mi, p_e );
More information about the vlc-devel
mailing list