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

Unified 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, 10 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: services/media/framework_create/decoder.cc
diff --git a/services/media/framework_create/decoder.cc b/services/media/framework_create/decoder.cc
index 1c0fa3a9edffbf13a692fd3acecd64d67fa1efdf..fd3c06da544883b165214534f905b99e6a3a1725 100644
--- a/services/media/framework_create/decoder.cc
+++ b/services/media/framework_create/decoder.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "services/media/framework/parts/decoder.h"
+#include "services/media/framework_ffmpeg/ffmpeg_decoder.h"
namespace mojo {
namespace media {
@@ -10,7 +11,13 @@ namespace media {
Result Decoder::Create(
const StreamType& stream_type,
std::shared_ptr<Decoder>* decoder_out) {
- return Result::kUnsupportedOperation;
+ std::shared_ptr<Decoder> decoder;
+ Result result = FfmpegDecoder::Create(stream_type, &decoder);
+ if (result == Result::kOk) {
+ *decoder_out = decoder;
+ }
+
+ return result;
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698