From bd019775a921ae9165e924e4d37bc838a7ef5781 Mon Sep 17 00:00:00 2001 From: Surajit Podder Date: Wed, 22 Jul 2015 18:58:29 +0530 Subject: video: Port AOSP fixes Includes following fixes: f510d0c libstagefright: Disable multi slice mode for video encode ca46843 audio: Fix for failure in CTS MediaRecorderTest cases b4d0490 libstagefright: check the audio source when adding to MPEG4Writer 89c6c3f libstagefright: Allocate cached camera buffers for sw encoders f2c387b libstagefright: Choose target specific media_codecs.xml f3e7122 libstagefright: Implement fallback mechanism to SW decoder Change-Id: I90398b2fead1f4e163935bf1db342e24275f7933 --- media/libstagefright/ACodec.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'media/libstagefright/ACodec.cpp') diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index 9af5f4b..97a0be0 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -5715,6 +5715,7 @@ bool ACodec::LoadedState::onConfigureComponent( { sp notify = mCodec->mNotify->dup(); notify->setInt32("what", CodecBase::kWhatComponentConfigured); + notify->setString("componentName", mCodec->mComponentName.c_str()); notify->setMessage("input-format", mCodec->mInputFormat); notify->setMessage("output-format", mCodec->mOutputFormat); notify->post(); @@ -6377,6 +6378,13 @@ void ACodec::onSignalEndOfInputStream() { notify->post(); } +sp ACodec::createObserver() { + sp observer = new CodecObserver; + sp notify = new AMessage(kWhatOMXMessageList, this); + observer->setNotificationMessage(notify); + return observer; +} + bool ACodec::ExecutingState::onOMXFrameRendered(int64_t mediaTimeUs, nsecs_t systemNano) { mCodec->onFrameRendered(mediaTimeUs, systemNano); return true; -- cgit v1.1