Commit d3ce31e0 authored by Antoine Cellerier's avatar Antoine Cellerier

Use DIR_SEP instead of "/"

parent 2ea0cb16
...@@ -597,7 +597,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -597,7 +597,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
if( p_mypicturesdir == NULL ) if( p_mypicturesdir == NULL )
{ {
asprintf( &val.psz_string, "%s/" CONFIG_DIR, asprintf( &val.psz_string, "%s\\" CONFIG_DIR,
p_vout->p_libvlc->psz_homedir ); p_vout->p_libvlc->psz_homedir );
} }
else else
...@@ -651,7 +651,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -651,7 +651,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
FILE *p_file; FILE *p_file;
do do
{ {
asprintf( &psz_filename, "%s/%s%05d.%s", val.psz_string, asprintf( &psz_filename, "%s" DIR_SEP "%s%05d.%s", val.psz_string,
psz_prefix, i_num++, format.psz_string ); psz_prefix, i_num++, format.psz_string );
} }
while( ( p_file = utf8_fopen( psz_filename, "r" ) ) && !fclose( p_file ) ); while( ( p_file = utf8_fopen( psz_filename, "r" ) ) && !fclose( p_file ) );
...@@ -659,7 +659,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -659,7 +659,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
} }
else else
{ {
asprintf( &psz_filename, "%s/%s%u.%s", val.psz_string, asprintf( &psz_filename, "%s" DIR_SEP "%s%u.%s", val.psz_string,
psz_prefix, psz_prefix,
(unsigned int)(p_pic->date / 100000) & 0xFFFFFF, (unsigned int)(p_pic->date / 100000) & 0xFFFFFF,
format.psz_string ); format.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