GNOME Bugzilla – Bug 620148
[videomixer] Doesn't negotiate format with downstream
Last modified: 2010-06-01 11:16:27 UTC
Right now the videomixer sink pads return the pad template on get_caps(), which is problematic when downstream is restricting either: * The format (RGB? YUV? variant?) * The width/height Currently, upstream elements therefore assume it can output any of the sink pad template formats... which later results in failure when streaming.
A small way to demonstrate how stupid it's acting :) gst-launch-0.10 videotestsrc ! videomixer ! video/x-raw-rgb ! fakesink
Created attachment 162371 [details] [review] videomixer: Implement sinkpad GetCapsFunction. This allows returning only the formats that downstream can support.
Could you base your patch on the one in bug #618530? I think the only change that's necessary is, to set the PAR additional to the width/height/fps.
Created attachment 162448 [details] [review] videomixer: Implement sinkpad GetCapsFunction. This allows returning only the formats, width, height, framerate and pixel-aspect-ratio that downstream can support.
Looks good, please commit :)
commit 01abf5b94e72ed63f67f11d2c44b1a843756f6d4 Author: Edward Hervey <bilboed@bilboed.com> Date: Mon May 31 13:30:05 2010 +0200 videomixer: Implement sinkpad GetCapsFunction. This allows returning only the formats, width, height, framerate and pixel-aspect-ratio that downstream can support. https://bugzilla.gnome.org/show_bug.cgi?id=620148