[haiku-commits] haiku: hrev52598 - src/kits/codec headers/os/codec

  • From: Barrett17 <b.vitruvio@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 26 Nov 2018 01:44:47 -0500 (EST)

hrev52598 adds 1 changeset to branch 'master'
old head: 9a49da9d4e7d1b290559a6bf1c43e223bd9e9a22
new head: f20ff4faecf703829c8869fe82dbdc1fdde9a305
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=f20ff4faecf7+%5E9a49da9d4e7d

----------------------------------------------------------------------------

f20ff4faecf7: CodecRoster: Add GetDecoderInfo

                                        [ Barrett17 <b.vitruvio@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52598
Commit:      f20ff4faecf703829c8869fe82dbdc1fdde9a305
URL:         https://git.haiku-os.org/haiku/commit/?id=f20ff4faecf7
Author:      Barrett17 <b.vitruvio@xxxxxxxxx>
Date:        Mon Nov 26 06:41:27 2018 UTC

----------------------------------------------------------------------------

2 files changed, 10 insertions(+)
headers/os/codec/CodecRoster.h | 3 +++
src/kits/codec/CodecRoster.cpp | 7 +++++++

----------------------------------------------------------------------------

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)


Other related posts:

  • » [haiku-commits] haiku: hrev52598 - src/kits/codec headers/os/codec - Barrett17