mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
videoaggregator: Handle if update_caps() returns EMPTY
Don't assume the returned caps from update_caps() is non-empty.
This commit is contained in:
parent
9afd71a507
commit
3d2048e40a
1 changed files with 2 additions and 1 deletions
|
@ -737,7 +737,8 @@ gst_video_aggregator_update_src_caps (GstVideoAggregator * vagg)
|
|||
GST_DEBUG_OBJECT (vagg, "updating caps from %" GST_PTR_FORMAT,
|
||||
downstream_caps);
|
||||
GST_DEBUG_OBJECT (vagg, " with filter %" GST_PTR_FORMAT, peercaps);
|
||||
if (!(caps = vagg_klass->update_caps (vagg, downstream_caps, peercaps))) {
|
||||
if (!(caps = vagg_klass->update_caps (vagg, downstream_caps, peercaps)) ||
|
||||
gst_caps_is_empty (caps)) {
|
||||
GST_WARNING_OBJECT (vagg, "Subclass failed to update provided caps");
|
||||
gst_caps_unref (downstream_caps);
|
||||
if (peercaps)
|
||||
|
|
Loading…
Reference in a new issue