summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'playtreeparser.c')
-rw-r--r--playtreeparser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/playtreeparser.c b/playtreeparser.c
index a9ebd35b1b..d8181904fd 100644
--- a/playtreeparser.c
+++ b/playtreeparser.c
@@ -532,8 +532,12 @@ parse_smil(play_tree_parser_t* p) {
pos = strstr(pos,"src="); // Is source present on this line
if (pos != NULL) {
entrymode=0;
+ if (pos[4] != '"' && pos[4] != '\'') {
+ mp_msg(MSGT_PLAYTREE,MSGL_V,"Unknown delimiter %c in source line %s\n", pos[4], line);
+ break;
+ }
s_start=pos+5;
- s_end=strchr(s_start,'"');
+ s_end=strchr(s_start,pos[4]);
if (s_end == NULL) {
mp_msg(MSGT_PLAYTREE,MSGL_V,"Error parsing this source line %s\n",line);
break;