pnmdec: completely reset parsing state at flush

Makes sure the mngr struct reflects a clean state
for the next frame, avoiding failures like:

https://bugzilla.gnome.org/show_bug.cgi?id=756563
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-10-16 20:45:42 -07:00
parent b9e1cd3732
commit 4b5e2f68a3

View file

@ -90,10 +90,7 @@ gst_pnmdec_class_init (GstPnmdecClass * klass)
static void
gst_pnmdec_flush (GstPnmdec * s)
{
s->mngr.info.width = 0;
s->mngr.info.height = 0;
s->mngr.info.fields = 0;
s->mngr.info.max = 0;
memset (&s->mngr, 0, sizeof (s->mngr));
s->size = 0;
s->current_size = 0;
if (s->buf) {