Commit abebf6ce authored by Sam Hocevar's avatar Sam Hocevar

* src/video_output/video_output.c: do not drop late frames at the video

    output level when --no-skip-frames was specified.
parent b8da4e27
...@@ -786,9 +786,12 @@ static void RunThread( vout_thread_t *p_vout) ...@@ -786,9 +786,12 @@ static void RunThread( vout_thread_t *p_vout)
p_vout->p_fps_sample[ p_vout->c_fps_samples++ % VOUT_FPS_SAMPLES ] p_vout->p_fps_sample[ p_vout->c_fps_samples++ % VOUT_FPS_SAMPLES ]
= display_date; = display_date;
/* XXX: config_GetInt is slow, but this kind of frame dropping
* should not happen that often. */
if( !p_picture->b_force && if( !p_picture->b_force &&
p_picture != p_last_picture && p_picture != p_last_picture &&
display_date < current_date + p_vout->render_time ) display_date < current_date + p_vout->render_time &&
config_GetInt( p_vout, "skip-frames" ) )
{ {
/* Picture is late: it will be destroyed and the thread /* Picture is late: it will be destroyed and the thread
* will directly choose the next picture */ * will directly choose the next picture */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment