]> git.sesse.net Git - vlc/commitdiff
input: With --play-and-pause don't pause non pausable stream.
authorPierre d'Herbemont <pdherbemont@free.fr>
Sat, 26 Dec 2009 14:18:06 +0000 (15:18 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sat, 26 Dec 2009 15:11:27 +0000 (16:11 +0100)
Else, this results in triggering the timeshift module.

src/input/input.c

index ef9cf3e3d578e6967acbc7655714da0a0c582dec..91b8d25ff657d70a3f3a0dac556efc6a7abbc633 100644 (file)
@@ -750,7 +750,9 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
                 msg_Dbg( p_input, "waiting decoder fifos to empty" );
                 i_wakeup = mdate() + INPUT_IDLE_SLEEP;
             }
-            else if( b_pause_after_eof )
+            /* Pause after eof only if the input is pausable.
+             * This way we won't trigger timeshifting for nothing */
+            else if( b_pause_after_eof && p_input->p->b_can_pause )
             {
                 msg_Dbg( p_input, "pausing at EOF (pause after each)");
                 val.i_int = PAUSE_S;