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

Side by Side Diff: services/media/framework_create/decoder.cc

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changed the way AVBuffer allocation/deallocation is done in the ffmpeg audio decoder. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/media/framework/parts/decoder.h" 5 #include "services/media/framework/parts/decoder.h"
6 #include "services/media/framework_ffmpeg/ffmpeg_decoder.h"
6 7
7 namespace mojo { 8 namespace mojo {
8 namespace media { 9 namespace media {
9 10
10 Result Decoder::Create( 11 Result Decoder::Create(
11 const StreamType& stream_type, 12 const StreamType& stream_type,
12 std::shared_ptr<Decoder>* decoder_out) { 13 std::shared_ptr<Decoder>* decoder_out) {
13 return Result::kUnsupportedOperation; 14 std::shared_ptr<Decoder> decoder;
15 Result result = FfmpegDecoder::Create(stream_type, &decoder);
16 if (result == Result::kOk) {
17 *decoder_out = decoder;
18 }
19
20 return result;
14 } 21 }
15 22
16 } // namespace media 23 } // namespace media
17 } // namespace mojo 24 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698