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

Unified Diff: media/base/decoder_status.cc

Issue 1834303005: Refactor audio and video decoder status into common file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast. 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
Index: media/base/decoder_status.cc
diff --git a/media/base/decoder_status.cc b/media/base/decoder_status.cc
new file mode 100644
index 0000000000000000000000000000000000000000..80c7c03e586012e0b922c34e9aa11b127319173e
--- /dev/null
+++ b/media/base/decoder_status.cc
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/base/decoder_status.h"
+
+namespace media {
+
+std::ostream& operator<<(std::ostream& os, const DecoderStatus& status) {
+ switch (status) {
+ case DecoderStatus::OK:
+ os << "DecoderStatus::OK";
+ break;
+ case DecoderStatus::ABORTED:
+ os << "DecoderStatus::ABORTED";
+ break;
+ case DecoderStatus::DECODE_ERROR:
+ os << "DecoderStatus::DECODE_ERROR";
+ break;
+ }
+ return os;
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698