mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
introduced -string- parameter to match everything after :// syntax
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15461 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d44685d4c1
commit
1cb05c0cfa
@ -1743,6 +1743,12 @@ static int parse_custom_url(m_option_t* opt,char *name,
|
||||
mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Option %s: URL doesn't have a valid protocol!\n",name);
|
||||
return M_OPT_INVALID;
|
||||
}
|
||||
if(m_option_list_find(desc->fields,"string")) {
|
||||
if(strlen(ptr1)>3) {
|
||||
m_struct_set(desc,dst,"string",ptr1+3);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
pos1 = ptr1-url;
|
||||
if(dst && m_option_list_find(desc->fields,"protocol")) {
|
||||
ptr1[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user