]> git.sesse.net Git - vlc/commitdiff
Allow using format meta stuff in --snapshot-path when defining a filename (see marq...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 6 Nov 2006 21:16:58 +0000 (21:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 6 Nov 2006 21:16:58 +0000 (21:16 +0000)
src/video_output/vout_intf.c

index ede2e29bf884070a4651d4132890e55e67063631..ac221e6d89f283d133916dc6b4d4b8170ae3d064 100644 (file)
@@ -39,6 +39,7 @@
 #include "video_output.h"
 #include "vlc_image.h"
 #include "vlc_spu.h"
+#include "vlc_strings.h"
 
 #include <snapshot.h>
 
@@ -585,7 +586,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             if( SHGetFolderPath != NULL )
             {
                 p_mypicturesdir = (char *)malloc( MAX_PATH );
-                if( p_mypicturesdir ) 
+                if( p_mypicturesdir )
                 {
 
                     if( S_OK != SHGetFolderPath( NULL,
@@ -668,7 +669,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
     }
     else // The user specified a full path name (including file name)
     {
-        asprintf ( &psz_filename, "%s", val.psz_string );
+        psz_filename = str_format_meta( p_vout, val.psz_string );
     }
 
     free( val.psz_string );