summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-10-16 20:45:42 -0700
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-10-18 14:53:01 -0700
commit4b5e2f68a3767ddd66681c7a20c05bb2829c3234 (patch)
tree599cccd43ce8333b9b681bb53b94648e562e74b5
parentb9e1cd3732b783b0e6ad40ed6723fb864ca50d65 (diff)
downloadgstreamer-plugins-bad-4b5e2f68a3767ddd66681c7a20c05bb2829c3234.tar.gz
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
-rw-r--r--gst/pnm/gstpnmdec.c5
1 files changed, 1 insertions, 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) {