Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1595)

Unified Diff: content/common/gpu/media/vaapi_h264_decoder.cc

Issue 10855142: VAVDA: properly mark outputted pictures. (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_h264_decoder.cc
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc
index 0d8643e9de2f8612911de9c725489efa1da86308..b459ebbcc0e1864e59a793f63099f1f8b6df4aa5 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.cc
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc
@@ -1506,6 +1506,8 @@ bool VaapiH264Decoder::OutputPic(H264Picture* pic) {
// No longer need to keep POC->surface mapping, since for decoder this POC
// is finished with. When the client returns this surface via
// ReusePictureBuffer(), it will be marked back as available for use.
+ DCHECK(!pic->outputted);
+ pic->outputted = true;
DecodeSurface* dec_surface = UnassignSurfaceFromPoC(pic->pic_order_cnt);
if (!dec_surface)
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698