From 8e145e7f32f7ffccc2908cee326a4165f7d00423 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 22 Oct 2019 12:21:04 +0200 Subject: [PATCH] ges: Handle empty marker lists --- ges/ges-marker-list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ges/ges-marker-list.c b/ges/ges-marker-list.c index 4d8272c..a4abc60 100644 --- a/ges/ges-marker-list.c +++ b/ges/ges-marker-list.c @@ -396,6 +396,11 @@ ges_marker_list_deserialize (GValue * dest, const gchar * s) caps = gst_caps_from_string (s); l = gst_caps_get_size (caps); + if (l == 0) { + GST_DEBUG ("Got empty caps: %s", s); + + goto done; + } if (l % 2) { GST_ERROR ("Failed deserializing marker list: expected evenly-sized caps"); -- 2.7.4