From f6c66f2a7842b3ec195f5311d76ce8ec0d448721 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Fri, 16 Oct 2015 20:45:42 -0700 Subject: 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 --- gst/pnm/gstpnmdec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c index 6963e5e60..d99374a10 100644 --- a/gst/pnm/gstpnmdec.c +++ b/gst/pnm/gstpnmdec.c @@ -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) { -- cgit v1.2.1