mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
ges: Handle empty marker lists
This commit is contained in:
parent
fe96405692
commit
8e145e7f32
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue