jpegenc: sink pad's getcaps shouldn't use the src pad getcaps
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 21 Dec 2010 16:37:40 +0000 (13:37 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 21 Dec 2010 18:23:11 +0000 (15:23 -0300)
commitdcbba0932dc579abd6aab4460fa1a416374eda1b
treea29830f8365f303e00615488412e7cbd777e7cc1
parentf4155f3cf348bba3cca7b289c98144ee0f7ec9d7
jpegenc: sink pad's getcaps shouldn't use the src pad getcaps

Instead of using get_allowed_caps on the srcpad, the sinkpad getcaps
should use the getcaps of the srcpad's peer. This way the srcpad
can keep using fixed_caps and sinkpad getcaps exposes all caps
that can be negotiated

https://bugzilla.gnome.org/show_bug.cgi?id=637686
ext/jpeg/gstjpegenc.c