Commit 25818929 authored by Marian Durkovic's avatar Marian Durkovic

backport [18283]

parent 6a610561
...@@ -1043,20 +1043,7 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, const char *psz_cmd, ...@@ -1043,20 +1043,7 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, const char *psz_cmd,
{ {
char *input; char *input;
if( psz_value != NULL && strlen(psz_value) > 1 &&
( psz_value[0] == '\'' || psz_value[0] == '\"' ) &&
( psz_value[ strlen(psz_value) - 1 ] == '\'' ||
psz_value[ strlen(psz_value) - 1 ] == '\"' ) )
{
input = malloc( strlen(psz_value) - 1 );
memcpy( input, psz_value + 1, strlen(psz_value) - 2 );
input[ strlen(psz_value) - 2 ] = '\0';
}
else
{
input = strdup( psz_value ); input = strdup( psz_value );
}
TAB_APPEND( media->i_input, media->input, input ); TAB_APPEND( media->i_input, media->input, input );
} }
...@@ -1072,20 +1059,7 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, const char *psz_cmd, ...@@ -1072,20 +1059,7 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, const char *psz_cmd,
char *input; char *input;
int i; int i;
if( psz_value != NULL && strlen(psz_value) > 1 &&
( psz_value[0] == '\'' || psz_value[0] == '\"' ) &&
( psz_value[ strlen(psz_value) - 1 ] == '\'' ||
psz_value[ strlen(psz_value) - 1 ] == '\"' ) )
{
input = malloc( strlen(psz_value) - 1 );
memcpy( input, psz_value + 1, strlen(psz_value) - 2 );
input[ strlen(psz_value) - 2 ] = '\0';
}
else
{
input = strdup( psz_value ); input = strdup( psz_value );
}
for( i = 0; i < media->i_input; i++ ) for( i = 0; i < media->i_input; i++ )
{ {
......
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