Commit 832682c4 authored by Antoine Cellerier's avatar Antoine Cellerier

Use 5 digits for snapshot numbering when in sequential mode (padd with 0s)

parent bc133f33
......@@ -647,7 +647,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
FILE *p_file;
do
{
asprintf( &psz_filename, "%s/%s%d.%s", val.psz_string,
asprintf( &psz_filename, "%s/%s%05d.%s", val.psz_string,
psz_prefix, i_num++, format.psz_string );
}
while( ( p_file = fopen( psz_filename, "r" ) ) && !fclose( p_file ) );
......
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