Merge ~vicamo/libhybris/+git/libhybris:for-libhybris-maintainers/bug-1619107/media-service-for-32-bit-codecs into ~libhybris-maintainers/libhybris/+git/libhybris:master
Proposed by
You-Sheng Yang
Status: | Needs review |
---|---|
Proposed branch: | ~vicamo/libhybris/+git/libhybris:for-libhybris-maintainers/bug-1619107/media-service-for-32-bit-codecs |
Merge into: | ~libhybris-maintainers/libhybris/+git/libhybris:master |
Diff against target: |
38 lines (+9/-0) 2 files modified
compat/media/Android.mk (+3/-0) compat/media/camera_service.cpp (+6/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Simon Fels | Approve | ||
Review via email: mp+308821@code.launchpad.net |
Description of the change
Bring back 32-bit media.service so that 64-bit Ubuntu processes may access codecs correctly.
To post a comment you must log in.
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.