ducatividdec: do not tell ducati we pass input when we do not
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 7 Sep 2012 08:52:53 +0000 (08:52 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 7 Sep 2012 13:57:48 +0000 (13:57 +0000)
src/gstducatividdec.c

index 987dc403ba9a705a8c90b854a948561d03239a59..7c718626d6a789dc6f73a239827c0caa17ae8f49 100644 (file)
@@ -540,6 +540,7 @@ gst_ducati_viddec_codec_flush (GstDucatiVidDec * self, gboolean eos)
   }
 
   self->inBufs->descs[0].bufSize.bytes = 0;
+  self->inBufs->numBufs = 0;
   self->inArgs->numBytes = 0;
   self->inArgs->inputID = 0;
 
@@ -558,6 +559,9 @@ gst_ducati_viddec_codec_flush (GstDucatiVidDec * self, gboolean eos)
 
   self->dynParams->newFrameFlag = XDAS_TRUE;
 
+  /* Reset the push buffer */
+  self->inBufs->numBufs = 1;
+
   /* on a flush, it is normal (and not an error) for the last _process() call
    * to return an error..
    */