mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
videorate: empty caps have no structure to pick
This commit is contained in:
parent
fe226e7a77
commit
eb10995895
1 changed files with 6 additions and 0 deletions
|
@ -340,6 +340,12 @@ gst_video_rate_setcaps (GstPad * pad, GstCaps * caps)
|
|||
|
||||
GST_DEBUG_OBJECT (videorate, "intersect %" GST_PTR_FORMAT, caps);
|
||||
|
||||
/* could turn up empty, due to e.g. colorspace etc */
|
||||
if (gst_caps_get_size (caps) == 0) {
|
||||
gst_caps_unref (caps);
|
||||
goto no_transform;
|
||||
}
|
||||
|
||||
/* take first possibility */
|
||||
gst_caps_truncate (caps);
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
|
Loading…
Reference in a new issue