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

Unified Diff: media/base/android/media_codec_util.h

Issue 1918623002: Use the MediaCodec flush workaround in more cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TargetApi annotation Created 4 years, 5 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 | « media/base/android/media_codec_bridge.h ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_util.h
diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h
index 6dfd13c825a53753d778a830b56936a3766a39fe..2413e79c3904012f71e6c0fc6cf0580afaf7a3ef 100644
--- a/media/base/android/media_codec_util.h
+++ b/media/base/android/media_codec_util.h
@@ -18,6 +18,8 @@ class GURL;
namespace media {
+class MediaCodecBridge;
+
// Helper macro to skip the test if MediaCodecBridge isn't available.
#define SKIP_TEST_IF_MEDIA_CODEC_BRIDGE_IS_NOT_AVAILABLE() \
do { \
@@ -84,6 +86,12 @@ class MEDIA_EXPORT MediaCodecUtil {
// Indicates if SurfaceView and MediaCodec work well together on this device.
static bool IsSurfaceViewOutputSupported();
+
+ // Indicates if the decoder is known to fail when flushed. (b/8125974,
+ // b/8347958)
+ // When true, the client should work around the issue by releasing the
+ // decoder and instantiating a new one rather than flushing the current one.
+ static bool CodecNeedsFlushWorkaround(MediaCodecBridge* codec);
};
} // namespace media
« no previous file with comments | « media/base/android/media_codec_bridge.h ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698