Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:40702 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933960AbbGHPtZ (ORCPT ); Wed, 8 Jul 2015 11:49:25 -0400 Message-ID: <1436370559.3079.80.camel@pengutronix.de> Subject: Re: [PATCH 1/2] [media] coda: fix sequence counter increment From: Philipp Zabel To: Zahari Doychev Cc: linux-media@vger.kernel.org, mchehab@osg.samsung.com, k.debski@samsung.com, hans.verkuil@cisco.com Date: Wed, 08 Jul 2015 17:49:19 +0200 In-Reply-To: <22a947a9955de80579174ba9232a597283e330eb.1436361987.git.zahari.doychev@linux.com> References: <22a947a9955de80579174ba9232a597283e330eb.1436361987.git.zahari.doychev@linux.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hi Zahari, Am Mittwoch, den 08.07.2015, 15:37 +0200 schrieb Zahari Doychev: > The coda context queue sequence counter is incremented only if the vb2 > source buffer payload is non zero. This makes possible to signal EOS > otherwise the condition in coda_buf_is_end_of_stream is never met or more > precisely buf->v4l2_buf.sequence == (ctx->qsequence - 1) never happens. > > Signed-off-by: Zahari Doychev I think we should instead avoid calling coda_bitstream_queue with zero payload buffers altogether and dump them in coda_fill_bitstream already. regards Philipp