Commit ecd201ba authored by Antoine Cellerier's avatar Antoine Cellerier

* Enable format time/meta stuff in snapshot-prefix.

parent 88697581
...@@ -636,6 +636,13 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -636,6 +636,13 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
{ {
char *psz_prefix = var_GetString( p_vout, "snapshot-prefix" ); char *psz_prefix = var_GetString( p_vout, "snapshot-prefix" );
if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" ); if( !psz_prefix ) psz_prefix = strdup( "vlcsnap-" );
else
{
char *psz_tmp = str_format_time( psz_prefix );
free( psz_prefix );
psz_prefix = str_format_meta( p_vout, psz_tmp );
free( psz_tmp );
}
closedir( path ); closedir( path );
if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE ) if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE )
......
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