mirror of https://code.videolan.org/videolan/vlc
record: escape recording dst-prefix
Fixes: #13104
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 81233d4f0a
)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
parent
c7e395b723
commit
0597589315
|
@ -493,8 +493,13 @@ static int EsOutSetRecord( es_out_t *out, bool b_record )
|
|||
char *psz_file = input_CreateFilename( p_input, psz_path, INPUT_RECORD_PREFIX, NULL );
|
||||
if( psz_file )
|
||||
{
|
||||
if( asprintf( &psz_sout, "#record{dst-prefix='%s'}", psz_file ) < 0 )
|
||||
psz_sout = NULL;
|
||||
char* psz_file_esc = config_StringEscape( psz_file );
|
||||
if ( psz_file_esc )
|
||||
{
|
||||
if( asprintf( &psz_sout, "#record{dst-prefix='%s'}", psz_file_esc ) < 0 )
|
||||
psz_sout = NULL;
|
||||
free( psz_file_esc );
|
||||
}
|
||||
free( psz_file );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue