Commit ec161656 authored by Francois Cartegnie's avatar Francois Cartegnie

access: http: fix null dereference getting mime type

parent c3dec45d
......@@ -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;
}
......
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