encodebin: Make use of the new preset_name when setting a preset
authorThibault Saunier <thibault.saunier@collabora.com>
Wed, 5 Dec 2012 18:22:42 +0000 (15:22 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 5 Dec 2012 20:48:38 +0000 (17:48 -0300)
commit7358cba01709a4b47ab0b167f102a68ac0aee09f
treef7885ca8ee29eeb8e10ff2377af8adf3b3307bbc
parent6a7f6889397206d23f5af8ba689045c727e94b39
encodebin: Make use of the new preset_name when setting a preset

The behaviour is sensibly changed here. Instead of purely falling when a
preset is set on the #GstEncodingProfile, we now make sure that the
element that is plugged corresponds to the one specified as preset. Then,
if we have a preset_name, we use it, if it fails, we fail (we might rather
just keep working even without setting the element properties?)

 + Add tests that it behave correctly
gst-libs/gst/pbutils/encoding-profile.c
gst/encoding/gstencodebin.c
tests/check/elements/encodebin.c