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

Side by Side 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, 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
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/decoder_status.h"
6
7 namespace media {
8
9 std::ostream& operator<<(std::ostream& os, const DecoderStatus& status) {
10 switch (status) {
11 case DecoderStatus::OK:
12 os << "DecoderStatus::OK";
13 break;
14 case DecoderStatus::ABORTED:
15 os << "DecoderStatus::ABORTED";
16 break;
17 case DecoderStatus::DECODE_ERROR:
18 os << "DecoderStatus::DECODE_ERROR";
19 break;
20 }
21 return os;
22 }
23
24 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698