GNOME Bugzilla – Bug 766477
videoscale: ignores possible passthrough in fixate_caps
Last modified: 2018-11-03 11:46:29 UTC
While implementing bug 756935, I noticed that videoscale ignores the unfixed width/height and ends up scaling itself rather than in the sink. If upstream has fixed caps (e.g. from a video file) and a preferred width/height in the first structure and unfixed width/height in subsequent structure/s, then videoscale is truncating before attempting to fixate which will lose the unfixed caps.
Created attachment 327938 [details] [review] videoscale: check intersection before truncating on fixate_caps This is a patch that fixes the issue but likely breaks other use cases.
One such example that this breaks is that videotestsrc ! video/x-raw,width=320,height=240 ! videoscale ! ximagesink. videoscale is now passthrough and ximagesink cannot scale the image so places it in the centre of the output. One option is to make ximagesink only expose the currently configure output size so that videoscale will scale however that will cause some more negotiation errors with ximagesink.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/268.