ges: Handle empty marker lists

This commit is contained in:
Thibault Saunier 2019-10-22 12:21:04 +02:00
parent fe96405692
commit 8e145e7f32

View file

@ -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");