basevideocodec: Reset should reset current caps
authorThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 30 Dec 2011 03:02:46 +0000 (00:02 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 30 Dec 2011 03:02:46 +0000 (00:02 -0300)
commit51f399686eb172baf7b27b300b8b84869fdb85fa
tree03e59d96371c928b1f507e22422f1059ce21c621
parente4d3d2dcd115ce6b3744ab852adeed04d438ac04
basevideocodec: Reset should reset current caps

New caps will need to be negotiated when reset happens
(PAUSED to READY). Without reseting the internal
stored format, basevideoencoder/decoder wouldn't call the
configuration function when the same caps was negotiated
again as they would believe this was the same caps as before.

The issue is that _stop has been called when going to READY and
the elements would have reset their internal codec libs/state as
well. A new configuration should be done.
gst-libs/gst/video/gstbasevideocodec.c