public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* V4L2_DEC_CMD_STOP and last_buffer_dequeued
@ 2016-10-12 15:33 Wu-Cheng Li (李務誠)
  2016-10-14 18:20 ` Nicolas Dufresne
  0 siblings, 1 reply; 5+ messages in thread
From: Wu-Cheng Li (李務誠) @ 2016-10-12 15:33 UTC (permalink / raw)
  To: linux-media, Hans Verkuil, pawel; +Cc: Tiffany Lin

Hi,
I'm trying to use V4L2_DEC_CMD_STOP to implement flush. First the
userspace sent V4L2_DEC_CMD_STOP to initiate the flush. The driver set
V4L2_BUF_FLAG_LAST on the last CAPTURE buffer. I thought implementing
V4L2_DEC_CMD_START in the driver was enough to start the decoder. But
last_buffer_dequeued had been set to true in v4l2 core. I couldn't
clear last_buffer_dequeued without calling STREAMOFF from the
userspace. If I need to call STREAMOFF/STREAMON after
V4L2_DEC_CMD_STOP, it looks like V4L2_DEC_CMD_START is not useful. Did
I miss anything?

Regards,
Wu-Cheng

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-17 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 15:33 V4L2_DEC_CMD_STOP and last_buffer_dequeued Wu-Cheng Li (李務誠)
2016-10-14 18:20 ` Nicolas Dufresne
2016-10-15  0:16   ` Wu-Cheng Li (李務誠)
2016-10-17 13:46     ` Nicolas Dufresne
2016-10-17 16:16       ` Wu-Cheng Li (李務誠)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox