]> git.sesse.net Git - vlc/commitdiff
* Enable format time/meta stuff in snapshot-prefix.
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 23 Jan 2007 21:40:51 +0000 (21:40 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 23 Jan 2007 21:40:51 +0000 (21:40 +0000)
src/video_output/vout_intf.c

index f2c7c24894a5ad202116df793fa33b382fc27b3c..428cf7c3d4676689c04fc22e1b477aa92f6cfa2a 100644 (file)
@@ -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" );
         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 );
         if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE )