summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-04-14 18:29:43 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2011-04-14 21:00:46 +0100
commit1d020790efc2f85001aa4bed6c78e06840f0627e (patch)
treeefb6ab5167eca35edab06a01444a86b90cdb1e89
parent96178f61e788cfac8327a1866dcaeaf5afa55d7b (diff)
downloadtotem-1d020790efc2f85001aa4bed6c78e06840f0627e.tar.gz
chapters: Warn about ignored chapters when parsing a CMML file
-rw-r--r--src/plugins/chapters/totem-cmml-parser.c6
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 01cacba9b..59e9ada37 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);
+ }
}
/**