From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 3531A42505 for ; Tue, 4 Jan 2022 22:41:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 47D8068A1A7; Wed, 5 Jan 2022 00:41:11 +0200 (EET) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CBC8D68018F for ; Wed, 5 Jan 2022 00:41:04 +0200 (EET) Received: by mail-qt1-f175.google.com with SMTP id q14so35652442qtx.10 for ; Tue, 04 Jan 2022 14:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zlWHaj+Ic3UhfGE6+l18UXDOTexPz1xpg+1jgcXn+hQ=; b=F0rEKh3+hJuhtZI+0BYyvugjyQJsN4/aL7kZx5LFR1DOPjLxkqnA1dxma3ktnYm9aT Pu6q1BF6Yj/WJVjubRm4tE9E4rBQh5Iio9dtqIIJVxKWtUwqI+WJYxnf4rmFTwhIer98 tZS/QlXNS7gcQ52KAlJfVvFSKE1VcF8LrPbtAWXfcLPI2rXWqRjH0BSm6/k8NCs5/BdJ hmu1zGHAU72XOFVOoLNh71RlWTQO0bQR7ET8A+VP2s3Dr9ENAj9FS9nDoZsMym5AyDE6 XwzMj7D9bM+ZKX1ofwVIqR/hByUqN2vQGUHPOBqgQB1DEpSXDCU87fTdp0bvP8y17Wdk F3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zlWHaj+Ic3UhfGE6+l18UXDOTexPz1xpg+1jgcXn+hQ=; b=w1hTencur1VkhzogGfeJ8I4+oaaYWk/QUt2UP7/yqm/aMpko0yoJ9Gh1Xm+uh3+fvz vCyh7vPcM4/wnkDCv5H8vnRdoe42j1OS3FlqueyJ0YvAaETZsd1C1QVFFBOLsGkp88Q5 I7ATU5Gv+twwB6NS1cN4UIJV6188BXp8Zg/x7r4usE78t8qQPlxIciR4BztmwWMbCwLw PUJ5lVH6LxAwyFd/U5X7NHxGV7TBdU3C/PVfNbws4AQ7zb3gsLYb/D1sOSYPn+CLEF5C cFbZbEBz/u+NGOFdyrOHXiZ9VzEYBwk5jpdCRtMx2JdIVm1JP+YJMdqndUko1yCJHqfc lY2A== X-Gm-Message-State: AOAM531vJ7JtNL/u0zpipWfTtP7iKOpwqTt+1HqjSp7txIEFCDJNeyaD H9jE37I1zTCunzrv0zkKPNAOQJaq/dY= X-Google-Smtp-Source: ABdhPJxhWrd4Pw2PZofc+DjGoQ/dNS+sZT3xa3IaesxqrIRws7wRFkr2CQYHX3LriSfHtDLCP82oUw== X-Received: by 2002:a05:622a:1755:: with SMTP id l21mr47365967qtk.539.1641336063470; Tue, 04 Jan 2022 14:41:03 -0800 (PST) Received: from jackie (pool-108-20-185-127.bstnma.fios.verizon.net. [108.20.185.127]) by smtp.gmail.com with ESMTPSA id h5sm33804151qkn.62.2022.01.04.14.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 14:41:03 -0800 (PST) Date: Tue, 4 Jan 2022 17:41:01 -0500 From: Andriy Gelman To: FFmpeg development discussions and patches Message-ID: <20220104224101.gmkmes6kduelmdsl@jackie> References: <20220104090836.31660-1-ming.qian@nxp.com> <20220104090836.31660-5-ming.qian@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220104090836.31660-5-ming.qian@nxp.com> Subject: Re: [FFmpeg-devel] [PATCH v5 5/7] avcodec/v4l2_context: resume the decoding process after source change event received. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 04. Jan 17:08, Ming Qian wrote: > client need to resume the decoding process > after it dequeues the source change event. > no matter what's the return value of v4l2_resolution_changed(). > if the client doesn't resume the decoding process, > the decoder may keep waiting > > in documentation of v4l2 stateful decoder, we can see the following > description: > The client must continue the sequence as described below to > continue the decoding process. > 1. Dequeue the source change event. > Important > A source change triggers an implicit decoder drain, > similar to the explicit Drain sequence. The decoder is > stopped after it completes. The decoding process must be > resumed with either a pair of calls to > VIDIOC_STREAMOFF() and VIDIOC_STREAMON() on the CAPTURE > queue, or a call to VIDIOC_DECODER_CMD() with the > V4L2_DEC_CMD_START command. > 2. Continue with the Capture Setup sequence. > This is just a clean up to remove the reinit variable so the commit title and description are wrong. Thanks, -- Andriy _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".