mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
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:
parent
b9e1cd3732
commit
4b5e2f68a3
1 changed files with 1 additions and 4 deletions
|
@ -90,10 +90,7 @@ gst_pnmdec_class_init (GstPnmdecClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_pnmdec_flush (GstPnmdec * s)
|
gst_pnmdec_flush (GstPnmdec * s)
|
||||||
{
|
{
|
||||||
s->mngr.info.width = 0;
|
memset (&s->mngr, 0, sizeof (s->mngr));
|
||||||
s->mngr.info.height = 0;
|
|
||||||
s->mngr.info.fields = 0;
|
|
||||||
s->mngr.info.max = 0;
|
|
||||||
s->size = 0;
|
s->size = 0;
|
||||||
s->current_size = 0;
|
s->current_size = 0;
|
||||||
if (s->buf) {
|
if (s->buf) {
|
||||||
|
|
Loading…
Reference in a new issue