]> git.sesse.net Git - vlc/commitdiff
libvlc: Don't lock the media player twice in set_media().
authorHugo Beauzee-Luyssen <beauze.h@gmail.com>
Thu, 18 Feb 2010 13:44:53 +0000 (14:44 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 18 Feb 2010 13:44:53 +0000 (14:44 +0100)
src/control/media_player.c

index 210b13bc0cd3a21457ca7892a9ec43e3e9513185..7595755d7c09ab5907d9ed7f30fcfa331411b53c 100644 (file)
@@ -575,7 +575,7 @@ void libvlc_media_player_set_media(
                           !p_mi->input.p_thread->b_error );
 
     lock( p_mi );
-    set_state( p_mi, libvlc_NothingSpecial, false );
+    set_state( p_mi, libvlc_NothingSpecial, true );
     unlock_input( p_mi );
 
     libvlc_media_release( p_mi->p_md );