X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finput%2Faccess.c;h=9ce14db09fe2a7764f15550158d7ee0d974c0d3a;hb=d90bffc9b952f607dcb7359c86028524db2a0e4e;hp=702a4aa342c95a81ca4706da77bbc7092b3ee8d0;hpb=d3fe7f28797d4dba65ffcdd60bf932e758a48a9e;p=vlc diff --git a/src/input/access.c b/src/input/access.c index 702a4aa342..9ce14db09f 100644 --- a/src/input/access.c +++ b/src/input/access.c @@ -53,8 +53,16 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces else { p_access->psz_path = strdup( psz_path ); - p_access->psz_access = - b_quick ? strdup( "file" ) : strdup( psz_access ); + if( b_quick ) + { + if( strstr( psz_path, "file://" ) ) + p_access->psz_access = strdup( "" ); + else + p_access->psz_access = strdup( "file" ); + } + else + p_access->psz_access = strdup( psz_access ); + p_access->psz_demux = strdup( psz_demux ); if( !b_quick )