git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8869758
)
* Enable format time/meta stuff in snapshot-prefix.
author
Antoine Cellerier
<dionoea@videolan.org>
Tue, 23 Jan 2007 21:40:51 +0000
(21:40 +0000)
committer
Antoine Cellerier
<dionoea@videolan.org>
Tue, 23 Jan 2007 21:40:51 +0000
(21:40 +0000)
src/video_output/vout_intf.c
patch
|
blob
|
history
diff --git
a/src/video_output/vout_intf.c
b/src/video_output/vout_intf.c
index
f2c7c24
..
428cf7c
100644
(file)
--- a/
src/video_output/vout_intf.c
+++ b/
src/video_output/vout_intf.c
@@
-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-" );
{
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 )
closedir( path );
if( var_GetBool( p_vout, "snapshot-sequential" ) == VLC_TRUE )