diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-26 05:31:30 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-26 05:31:30 +0300 |
commit | 3bdcbba49663cfef679fe1ac17bbec311a474e60 (patch) | |
tree | 04067daf0051bc4e4f7ad15f569e30fd8182b8ba | |
parent | 02b99bd5ba103fd2109632b69b02a5798b770372 (diff) |
asxparser: remove code confusing asx/player options
-rw-r--r-- | asxparser.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/asxparser.c b/asxparser.c index 9ad0935726..5d0d811ab4 100644 --- a/asxparser.c +++ b/asxparser.c @@ -388,29 +388,6 @@ asx_get_element(ASX_Parser_t* parser,char** _buffer, } static void -asx_parse_param(ASX_Parser_t* parser, char** attribs, play_tree_t* pt) { - char *name,*val; - - name = asx_get_attrib("NAME",attribs); - if(!name) { - asx_warning_attrib_required(parser,"PARAM" ,"NAME" ); - return; - } - val = asx_get_attrib("VALUE",attribs); - if(m_config_get_option(parser->mconfig,name) == NULL) { - mp_msg(MSGT_PLAYTREE,MSGL_WARN,"Found unknown param in asx: %s",name); - if(val) - mp_msg(MSGT_PLAYTREE,MSGL_WARN,"=%s\n",val); - else - mp_msg(MSGT_PLAYTREE,MSGL_WARN,"\n"); - return; - } - play_tree_set_param(pt,name,val); - free(name); - free(val); -} - -static void asx_parse_ref(ASX_Parser_t* parser, char** attribs, play_tree_t* pt) { char *href; @@ -561,8 +538,6 @@ asx_parse_repeat(ASX_Parser_t* parser,char* buffer,char** _attribs) { else play_tree_append_entry(list,entry); mp_msg(MSGT_PLAYTREE,MSGL_DBG2,"Adding element %s to repeat\n",element); } - } else if(strcasecmp(element,"PARAM") == 0) { - asx_parse_param(parser,attribs,repeat); } else mp_msg(MSGT_PLAYTREE,MSGL_DBG2,"Ignoring element %s\n",element); free(body); |