diff 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
line wrap: on
line diff
--- a/m_option.c	Sat May 14 12:44:30 2005 +0000
+++ b/m_option.c	Sat May 14 12:49:18 2005 +0000
@@ -1743,6 +1743,12 @@
     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';