diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-04-14 18:29:43 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2011-04-14 21:00:46 +0100 |
commit | 1d020790efc2f85001aa4bed6c78e06840f0627e (patch) | |
tree | efb6ab5167eca35edab06a01444a86b90cdb1e89 | |
parent | 96178f61e788cfac8327a1866dcaeaf5afa55d7b (diff) |
chapters: Warn about ignored chapters when parsing a CMML file
-rw-r--r-- | src/plugins/chapters/totem-cmml-parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/chapters/totem-cmml-parser.c b/src/plugins/chapters/totem-cmml-parser.c index 01cacba9..59e9ada3 100644 --- a/src/plugins/chapters/totem-cmml-parser.c +++ b/src/plugins/chapters/totem-cmml-parser.c @@ -488,11 +488,13 @@ totem_cmml_read_clip_cb (TotemCmmlClip *clip, new_clip = totem_cmml_clip_copy (clip); - if (G_LIKELY (new_clip != NULL && new_clip->time_start >= 0)) + if (G_LIKELY (new_clip != NULL && new_clip->time_start >= 0)) { * ( (GList **) user_data) = g_list_append ( * ( (GList **) user_data), new_clip); /* clip with -1 start time is bad one, remove it */ - else + } else if (new_clip != NULL) { + g_warning ("Ignoring clip '%s' due to having an invalid start time: %" G_GINT64_FORMAT, new_clip->title, new_clip->time_start); totem_cmml_clip_free (new_clip); + } } /** |