From f20ff4faecf703829c8869fe82dbdc1fdde9a305 Mon Sep 17 00:00:00 2001 From: Barrett17 Date: Mon, 26 Nov 2018 07:41:27 +0100 Subject: [PATCH] CodecRoster: Add GetDecoderInfo --- headers/os/codec/CodecRoster.h | 3 +++ src/kits/codec/CodecRoster.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/headers/os/codec/CodecRoster.h b/headers/os/codec/CodecRoster.h index 63c324e31c..1d8bd2a746 100644 --- a/headers/os/codec/CodecRoster.h +++ b/headers/os/codec/CodecRoster.h @@ -30,6 +30,9 @@ public: static status_t InstantiateDecoder(BDecoder** decoder, const media_codec_info& mci); static void ReleaseDecoder(BDecoder* decoder); + + static status_t GetDecoderInfo(BDecoder* decoder, + media_codec_info* info); static status_t InstantiateWriter(BWriter** writer, const media_file_format& mff, diff --git a/src/kits/codec/CodecRoster.cpp b/src/kits/codec/CodecRoster.cpp index ea5d8997b2..59d213752c 100644 --- a/src/kits/codec/CodecRoster.cpp +++ b/src/kits/codec/CodecRoster.cpp @@ -46,6 +46,13 @@ BCodecRoster::ReleaseDecoder(BDecoder* decoder) } +status_t +BCodecRoster::GetDecoderInfo(BDecoder* decoder, media_codec_info* info) +{ + return gPluginManager.GetDecoderInfo(decoder, info); +} + + status_t BCodecRoster::InstantiateWriter(BWriter** writer, const media_file_format& mff, BDataIO* target)