return NULL;
}
+ stats_Create( p_vout, "displayed_pictures", VLC_VAR_INTEGER,
+ STATS_COUNTER );
+ stats_Create( p_vout, "lost_pictures", VLC_VAR_INTEGER, STATS_COUNTER );
+
/* Initialize pictures - translation tables and functions
* will be initialized later in InitThread */
for( i_index = 0; i_index < 2 * VOUT_MAX_PICTURES + 1; i_index++)
p_vout->p_fps_sample[ p_vout->c_fps_samples++ % VOUT_FPS_SAMPLES ]
= display_date;
+ /* XXX: config_GetInt is slow, but this kind of frame dropping
+ * should not happen that often. */
if( !p_picture->b_force &&
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
* will directly choose the next picture */
}
msg_Warn( p_vout, "late picture skipped ("I64Fd")",
current_date - display_date );
+ stats_UpdateInteger( p_vout, "lost_pictures", 1 );
vlc_mutex_unlock( &p_vout->picture_lock );
continue;
p_picture->i_status = DESTROYED_PICTURE;
p_vout->i_heap_size--;
}
+ stats_UpdateInteger( p_vout, "lost_pictures", 1 );
msg_Warn( p_vout, "vout warning: early picture skipped "
"("I64Fd")", display_date - current_date
- p_vout->i_pts_delay );
/*
* Perform rendering
*/
+ stats_UpdateInteger( p_vout, "displayed_pictures", 1 );
p_directbuffer = vout_RenderPicture( p_vout, p_picture, p_subpic );
/*