summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-10-16 20:45:42 -0700
committerSebastian Dröge <sebastian@centricular.com>2015-10-20 10:12:32 +0300
commitf6c66f2a7842b3ec195f5311d76ce8ec0d448721 (patch)
tree5c41cd3d38982c867228b7b974d008c6a8613d73
parent903691f3888526f240915fa124845a528e85c1b7 (diff)
downloadgstreamer-plugins-bad-f6c66f2a7842b3ec195f5311d76ce8ec0d448721.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) {