Index: content/common/gpu/media/vt_video_decode_accelerator.h |
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.h b/content/common/gpu/media/vt_video_decode_accelerator.h |
index 327ab590e2b74d134d94ac61862a5596dea2c49d..c518b8f40c9cb0eb9963666daba451323521d7ce 100644 |
--- a/content/common/gpu/media/vt_video_decode_accelerator.h |
+++ b/content/common/gpu/media/vt_video_decode_accelerator.h |
@@ -173,9 +173,9 @@ class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { |
// Size of assigned picture buffers. |
gfx::Size picture_size_; |
- // Queue of frames that have not yet been decoded; maintains ownership of the |
- // Frame objects while they flow through VideoToolbox. |
- std::queue<linked_ptr<Frame>> pending_frames_; |
+ // Frames that have not yet been decoded, keyed by bitstream ID; maintains |
+ // ownership of Frame objects while they flow through VideoToolbox. |
+ std::map<int32_t, linked_ptr<Frame>> pending_frames_; |
// Set of assigned bitstream IDs, so that Destroy() can release them all. |
std::set<int32_t> assigned_bitstream_ids_; |