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

Side by Side Diff: media/base/decode_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: Comments. Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « media/base/decode_status.h ('k') | media/base/video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/decode_status.h"
6
7 #include <ostream>
8
9 namespace media {
10
11 std::ostream& operator<<(std::ostream& os, const DecodeStatus& status) {
12 switch (status) {
13 case DecodeStatus::OK:
14 os << "DecodeStatus::OK";
15 break;
16 case DecodeStatus::ABORTED:
17 os << "DecodeStatus::ABORTED";
18 break;
19 case DecodeStatus::DECODE_ERROR:
20 os << "DecodeStatus::DECODE_ERROR";
21 break;
22 }
23 return os;
24 }
25
26 } // namespace media
OLDNEW
« no previous file with comments | « media/base/decode_status.h ('k') | media/base/video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698