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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator_win.h

Issue 1842523002: Fix the H.264 config detection code which lead to video playback errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/dxva_video_decode_accelerator_win.h
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator_win.h b/content/common/gpu/media/dxva_video_decode_accelerator_win.h
index 56087b335e8856640b1e69e41bb8fc8ede617aef..950eda5a090cd079a7bcd1f510722562b1236304 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator_win.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.h
@@ -29,6 +29,7 @@
#include "base/threading/thread.h"
#include "base/win/scoped_comptr.h"
#include "content/common/content_export.h"
+#include "media/filters/h264_parser.h"
#include "media/video/video_decode_accelerator.h"
interface IMFSample;
@@ -75,6 +76,8 @@ class H264ConfigChangeDetector {
// we want to honor after we see an IDR slice.
bool pending_config_changed_;
+ scoped_ptr<media::H264Parser> parser_;
+
DISALLOW_COPY_AND_ASSIGN(H264ConfigChangeDetector);
};
@@ -446,7 +449,7 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// when these changes occur then, the decoder works fine. The
// H264ConfigChangeDetector class provides functionality to check if the
// stream configuration changed.
- H264ConfigChangeDetector config_change_detector_;
+ scoped_ptr<H264ConfigChangeDetector> config_change_detector_;
// Contains the initialization parameters for the video.
Config config_;
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698