Commit feef533d authored by Antoine Cellerier's avatar Antoine Cellerier

Add format string variable to display frame count. ($f)

parent 27774650
...@@ -719,6 +719,18 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string ) ...@@ -719,6 +719,18 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
INSERT_STRING( input_item_GetEncodedBy( p_item ) ); INSERT_STRING( input_item_GetEncodedBy( p_item ) );
} }
break; break;
case 'f':
if( p_item && p_item->p_stats )
{
snprintf( buf, 10, "%d",
p_item->p_stats->i_displayed_pictures );
}
else
{
sprintf( buf, b_empty_if_na ? "" : "-" );
}
INSERT_STRING_NO_FREE( buf );
break;
case 'g': case 'g':
if( p_item ) if( p_item )
{ {
......
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