Fix missing unlock (cid #1047146)
authorRémi Duraffort <ivoire@videolan.org>
Sat, 13 Jul 2013 08:37:30 +0000 (10:37 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 13 Jul 2013 08:37:30 +0000 (10:37 +0200)
lib/media.c

index fb3a637..593f5c6 100644 (file)
@@ -767,6 +767,7 @@ libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es )
             libvlc_media_tracks_release( *pp_es, i_es );
             *pp_es = NULL;
             free( p_mes );
+            vlc_mutex_unlock( &p_input_item->lock );
             return 0;
         }
         (*pp_es)[i] = p_mes;