Mercurial > mplayer.hg
comparison m_option.c @ 15460:fa8c3f5b7ec2
introduced -string- parameter to match everything after :// syntax
author | nicodvb |
---|---|
date | Sat, 14 May 2005 12:49:18 +0000 |
parents | 474a40917f73 |
children | c06986fbf819 |
comparison
equal
deleted
inserted
replaced
15459:ae92bce4e6aa | 15460:fa8c3f5b7ec2 |
---|---|
1741 return 1; | 1741 return 1; |
1742 } | 1742 } |
1743 mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Option %s: URL doesn't have a valid protocol!\n",name); | 1743 mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Option %s: URL doesn't have a valid protocol!\n",name); |
1744 return M_OPT_INVALID; | 1744 return M_OPT_INVALID; |
1745 } | 1745 } |
1746 if(m_option_list_find(desc->fields,"string")) { | |
1747 if(strlen(ptr1)>3) { | |
1748 m_struct_set(desc,dst,"string",ptr1+3); | |
1749 return 1; | |
1750 } | |
1751 } | |
1746 pos1 = ptr1-url; | 1752 pos1 = ptr1-url; |
1747 if(dst && m_option_list_find(desc->fields,"protocol")) { | 1753 if(dst && m_option_list_find(desc->fields,"protocol")) { |
1748 ptr1[0] = '\0'; | 1754 ptr1[0] = '\0'; |
1749 r = m_struct_set(desc,dst,"protocol",url); | 1755 r = m_struct_set(desc,dst,"protocol",url); |
1750 ptr1[0] = ':'; | 1756 ptr1[0] = ':'; |