jpegenc: Fix getcaps function
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 5 Apr 2010 17:51:58 +0000 (14:51 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 5 Apr 2010 19:09:58 +0000 (16:09 -0300)
commitb1984b72bb8e26add58c3211941f7388bb46a163
treed1a364666b4ff8a3188133a6337d50b4c5e28eb5
parent3c1940c187a192aa0ea46ce2899acb6f9a61161c
jpegenc: Fix getcaps function

When creating the caps allowed to upstream using downstream
restrictions, use gst_pad_get_allowed_caps as that has the
usable formats and puts into it the width, height and framerate
fields. This avoids getting errors about getcaps returning
non subset caps of its pad template.

This error showed up on the metadata plugin unit test in -bad.
ext/jpeg/gstjpegenc.c