[vlc-devel] commit: libvlc: Don't lock the media player twice in set_media(). ( Hugo Beauzee-Luyssen )

git version control git at videolan.org
Thu Feb 18 14:45:28 CET 2010


vlc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Thu Feb 18 14:44:53 2010 +0100| [7d59872c455cb83be6ec6745dbd61e409d160610] | committer: Pierre d'Herbemont 

libvlc: Don't lock the media player twice in set_media().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d59872c455cb83be6ec6745dbd61e409d160610
---

 src/control/media_player.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index 210b13b..7595755 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -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 );




More information about the vlc-devel mailing list