media: V4L2StatefulVDBackend skip flush when no pending request
Originally, V4L2StatefulVDBackend skipped flush when the V4L2 output queue is not streaming. However, it doesn't mean there is no pending requests needed to be flushed. This CL fixes this issue by introduing a new flag to track if there is any pending request. BUG=b:170728773 TEST=android.media.cts.AdaptivePlaybackTest#testH264_adaptiveReconfigDrc TEST=tast.video.DecodeAccel.{h264,vp8,vp9} Change-Id: I45d2b6072e47f23a3a61ccb622bef206ad1bb6e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532027 Commit-Queue: Chih-Yu Huang <akahuang@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#827678}
Showing
Please register or sign in to comment