summaryrefslogtreecommitdiff
path: root/src/mediarev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mediarev.c')
-rw-r--r--src/mediarev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mediarev.c b/src/mediarev.c
index e8dd3e6..b81d8c6 100644
--- a/src/mediarev.c
+++ b/src/mediarev.c
@@ -75,10 +75,11 @@ med ** parsemediagz(char * media_path, int * no_of_media)
removeleadingspace(cur_line);
- if(!strncmp(cur_line,"set the filename of player \"player1\" to \"",41))
+ if(!strncmp(cur_line,"set the filename of player \"", 28))
{
/* todo: check if smil, if so follow to find uri */
- sscanf(cur_line,"set the filename of player \"player1\" to \"%s\"",cur_media->uri);
+ //sscanf(cur_line,"set the filename of player \"player1\" to \"%s\"",cur_media->uri);
+ sscanf(cur_line,"set the filename of player \"%[^\"] to \"%s\"",NULL,cur_media->uri);
cur_media->uri[strlen(cur_media->uri)-1] = '\0'; /* workaround extra character */
}
else if(!strncmp(cur_line,"set the label of this stack to \"",32))