vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat May 23 21:35:19 2015 +0300| [5a8defdc4a7a9ac390fdee7b778afbfd537a08d0] | committer: Rémi Denis-Courmont
input: fetch play-and-pause only once The value never changes anyway. This fixes non-interactive inputs. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a8defdc4a7a9ac390fdee7b778afbfd537a08d0 --- src/input/input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/input/input.c b/src/input/input.c index 2420df6..ef78ddb 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -684,7 +684,7 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive ) ControlPause( p_input, i_start_mdate ); bool b_pause_after_eof = b_interactive && - var_CreateGetBool( p_input, "play-and-pause" ); + var_InheritBool( p_input, "play-and-pause" ); while( vlc_object_alive( p_input ) && !p_input->b_error ) { @@ -728,7 +728,6 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive ) { if( MainLoopTryRepeat( p_input, &i_start_mdate ) ) break; - b_pause_after_eof = var_GetBool( p_input, "play-and-pause" ); } /* Update interface and statistics */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
