access: http: fix null dereference getting mime type

This commit is contained in:
Francois Cartegnie 2015-07-29 16:51:59 +02:00
parent c3dec45d9b
commit ec161656d2
1 changed files with 3 additions and 1 deletions

View File

@ -946,8 +946,10 @@ static int Control( access_t *p_access, int i_query, va_list args )
!strcasecmp( p_sys->psz_mime, "misc/ultravox" ) )
/* Grrrr! detect ultravox server and force NSV demuxer */
*type = strdup( "video/nsa" );
else
else if( p_sys->psz_mime )
*type = strdup( p_sys->psz_mime );
else
return VLC_EGENERIC;
break;
}