videomixer: Use the best width/height/etc if downstream can handle that

Before it was always using whatever downstream preferred, while
the code and documentation claimed something different.

https://bugzilla.gnome.org/show_bug.cgi?id=727180
This commit is contained in:
Sebastian Dröge 2014-08-14 16:36:44 +03:00
parent 61fe02a018
commit ce1d4d9f21

View file

@ -248,7 +248,7 @@ gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
caps = gst_video_info_to_caps (&info);
peercaps = gst_pad_peer_query_caps (mix->srcpad, NULL);
if (peercaps) {
if (peercaps && !gst_caps_can_intersect (peercaps, caps)) {
GstCaps *tmp;
s = gst_caps_get_structure (caps, 0);