Unlock the playlist while waiting for input to finish so that input can freely use...
authorClément Stenac <zorglub@videolan.org>
Sat, 23 Dec 2006 14:18:49 +0000 (14:18 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 23 Dec 2006 14:18:49 +0000 (14:18 +0000)
src/playlist/engine.c

index ebb7365..6b0f500 100644 (file)
@@ -291,7 +291,9 @@ check_input:
         else if( p_playlist->p_input->b_die )
         {
             PL_DEBUG( "dying input" );
         else if( p_playlist->p_input->b_die )
         {
             PL_DEBUG( "dying input" );
+            PL_UNLOCK;
             msleep( 25000 ); // 25 ms
             msleep( 25000 ); // 25 ms
+            PL_LOCK;
             goto check_input;
         }
         /* This input has finished, ask it to die ! */
             goto check_input;
         }
         /* This input has finished, ask it to die ! */