So far codec listing works internally, but not for libhybris. The Bp part of a MediaCodec is returned as a shared pointer, and while we have:
return MediaCodecList::getInstance()->getCodecInfo(index)->getCodecName();
The returned string pointer will be invalidated right after the return statement because nobody holds a reference to that MediaCodec shared pointer, and it desctructs itself right away.
« Back to merge proposal
So far codec listing works internally, but not for libhybris. The Bp part of a MediaCodec is returned as a shared pointer, and while we have:
return MediaCodecList: :getInstance( )->getCodecInfo (index) ->getCodecName( );
The returned string pointer will be invalidated right after the return statement because nobody holds a reference to that MediaCodec shared pointer, and it desctructs itself right away.