mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +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;
|
GstCaps *ret;
|
||||||
|
|
||||||
ret =
|
|
||||||
GST_VIDEO_AGGREGATOR_CLASS (gst_gl_video_mixer_parent_class)->update_caps
|
|
||||||
(vagg, caps, NULL);
|
|
||||||
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
GstCaps *tmp = gst_caps_intersect (ret, filter);
|
ret = gst_caps_intersect (caps, filter);
|
||||||
gst_caps_unref (ret);
|
} else {
|
||||||
ret = tmp;
|
ret = gst_caps_ref (caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue