Commit 34b7d77d authored by Antoine Cellerier's avatar Antoine Cellerier

Allow using format meta stuff in --snapshot-path when defining a filename (see...

Allow using format meta stuff in --snapshot-path when defining a filename (see marq help for available variables).
parent a3cdce42
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "video_output.h" #include "video_output.h"
#include "vlc_image.h" #include "vlc_image.h"
#include "vlc_spu.h" #include "vlc_spu.h"
#include "vlc_strings.h"
#include <snapshot.h> #include <snapshot.h>
...@@ -585,7 +586,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -585,7 +586,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
if( SHGetFolderPath != NULL ) if( SHGetFolderPath != NULL )
{ {
p_mypicturesdir = (char *)malloc( MAX_PATH ); p_mypicturesdir = (char *)malloc( MAX_PATH );
if( p_mypicturesdir ) if( p_mypicturesdir )
{ {
if( S_OK != SHGetFolderPath( NULL, if( S_OK != SHGetFolderPath( NULL,
...@@ -668,7 +669,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -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) 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 ); free( val.psz_string );
......
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