mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
videoaggregator: repect the result of find_best_format in the default update_caps
We weren't using the result of find_best_format at all. Also, move the find_best_format usage to the default update_caps() to make sure that it is also overridable. https://bugzilla.gnome.org/show_bug.cgi?id=764363
This commit is contained in:
parent
aae649dc75
commit
7f8e09523f
1 changed files with 3 additions and 7 deletions
|
@ -977,14 +977,10 @@ _update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
|||
{
|
||||
GstCaps *ret;
|
||||
|
||||
ret =
|
||||
GST_VIDEO_AGGREGATOR_CLASS (gst_gl_video_mixer_parent_class)->update_caps
|
||||
(vagg, caps, NULL);
|
||||
|
||||
if (filter) {
|
||||
GstCaps *tmp = gst_caps_intersect (ret, filter);
|
||||
gst_caps_unref (ret);
|
||||
ret = tmp;
|
||||
ret = gst_caps_intersect (caps, filter);
|
||||
} else {
|
||||
ret = gst_caps_ref (caps);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue