Loading include/media/IOMX.h +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode) = 0; sp<IOMXNode> *omxNode) = 0; virtual status_t createPersistentInputSurface( sp<IGraphicBufferProducer> *bufferProducer, Loading include/media/stagefright/ACodec.h +0 −1 Original line number Diff line number Diff line Loading @@ -245,7 +245,6 @@ private: uint32_t mQuirks; sp<IOMX> mOMX; sp<IOMXNode> mOMXNode; sp<IBinder> mNodeBinder; int32_t mNodeGeneration; sp<MemoryDealer> mDealer[2]; Loading media/libmedia/IOMX.cpp +2 −6 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode) { sp<IOMXNode> *omxNode) { Parcel data, reply; data.writeInterfaceToken(IOMX::getInterfaceDescriptor()); data.writeCString(name); Loading @@ -104,9 +104,6 @@ public: status_t err = reply.readInt32(); if (err == OK) { *omxNode = IOMXNode::asInterface(reply.readStrongBinder()); if (nodeBinder != NULL) { *nodeBinder = remote(); } } else { omxNode->clear(); } Loading Loading @@ -656,8 +653,7 @@ status_t BnOMX::onTransact( sp<IOMXNode> omxNode; status_t err = allocateNode( name, observer, NULL /* nodeBinder */, &omxNode); status_t err = allocateNode(name, observer, &omxNode); reply->writeInt32(err); if (err == OK) { Loading media/libstagefright/ACodec.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -6221,7 +6221,10 @@ void ACodec::UninitializedState::stateEntered() { ALOGV("Now uninitialized"); if (mDeathNotifier != NULL) { mCodec->mNodeBinder->unlinkToDeath(mDeathNotifier); if (mCodec->mOMXNode != NULL) { sp<IBinder> binder = IInterface::asBinder(mCodec->mOMXNode); binder->unlinkToDeath(mDeathNotifier); } mDeathNotifier.clear(); } Loading Loading @@ -6359,7 +6362,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) { pid_t tid = gettid(); int prevPriority = androidGetThreadPriority(tid); androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); err = omx->allocateNode(componentName.c_str(), observer, &mCodec->mNodeBinder, &omxNode); err = omx->allocateNode(componentName.c_str(), observer, &omxNode); androidSetThreadPriority(tid, prevPriority); if (err == OK) { Loading @@ -6384,8 +6387,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) { } mDeathNotifier = new DeathNotifier(notify); if (mCodec->mNodeBinder == NULL || mCodec->mNodeBinder->linkToDeath(mDeathNotifier) != OK) { if (IInterface::asBinder(omxNode)->linkToDeath(mDeathNotifier) != OK) { // This was a local binder, if it dies so do we, we won't care // about any notifications in the afterlife. mDeathNotifier.clear(); Loading Loading @@ -7798,7 +7800,7 @@ status_t ACodec::queryCapabilities( sp<CodecObserver> observer = new CodecObserver; sp<IOMXNode> omxNode; err = omx->allocateNode(name.c_str(), observer, NULL, &omxNode); err = omx->allocateNode(name.c_str(), observer, &omxNode); if (err != OK) { client.disconnect(); return err; Loading media/libstagefright/include/OMX.h +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode); sp<IOMXNode> *omxNode); virtual status_t createPersistentInputSurface( sp<IGraphicBufferProducer> *bufferProducer, Loading Loading
include/media/IOMX.h +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode) = 0; sp<IOMXNode> *omxNode) = 0; virtual status_t createPersistentInputSurface( sp<IGraphicBufferProducer> *bufferProducer, Loading
include/media/stagefright/ACodec.h +0 −1 Original line number Diff line number Diff line Loading @@ -245,7 +245,6 @@ private: uint32_t mQuirks; sp<IOMX> mOMX; sp<IOMXNode> mOMXNode; sp<IBinder> mNodeBinder; int32_t mNodeGeneration; sp<MemoryDealer> mDealer[2]; Loading
media/libmedia/IOMX.cpp +2 −6 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode) { sp<IOMXNode> *omxNode) { Parcel data, reply; data.writeInterfaceToken(IOMX::getInterfaceDescriptor()); data.writeCString(name); Loading @@ -104,9 +104,6 @@ public: status_t err = reply.readInt32(); if (err == OK) { *omxNode = IOMXNode::asInterface(reply.readStrongBinder()); if (nodeBinder != NULL) { *nodeBinder = remote(); } } else { omxNode->clear(); } Loading Loading @@ -656,8 +653,7 @@ status_t BnOMX::onTransact( sp<IOMXNode> omxNode; status_t err = allocateNode( name, observer, NULL /* nodeBinder */, &omxNode); status_t err = allocateNode(name, observer, &omxNode); reply->writeInt32(err); if (err == OK) { Loading
media/libstagefright/ACodec.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -6221,7 +6221,10 @@ void ACodec::UninitializedState::stateEntered() { ALOGV("Now uninitialized"); if (mDeathNotifier != NULL) { mCodec->mNodeBinder->unlinkToDeath(mDeathNotifier); if (mCodec->mOMXNode != NULL) { sp<IBinder> binder = IInterface::asBinder(mCodec->mOMXNode); binder->unlinkToDeath(mDeathNotifier); } mDeathNotifier.clear(); } Loading Loading @@ -6359,7 +6362,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) { pid_t tid = gettid(); int prevPriority = androidGetThreadPriority(tid); androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); err = omx->allocateNode(componentName.c_str(), observer, &mCodec->mNodeBinder, &omxNode); err = omx->allocateNode(componentName.c_str(), observer, &omxNode); androidSetThreadPriority(tid, prevPriority); if (err == OK) { Loading @@ -6384,8 +6387,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) { } mDeathNotifier = new DeathNotifier(notify); if (mCodec->mNodeBinder == NULL || mCodec->mNodeBinder->linkToDeath(mDeathNotifier) != OK) { if (IInterface::asBinder(omxNode)->linkToDeath(mDeathNotifier) != OK) { // This was a local binder, if it dies so do we, we won't care // about any notifications in the afterlife. mDeathNotifier.clear(); Loading Loading @@ -7798,7 +7800,7 @@ status_t ACodec::queryCapabilities( sp<CodecObserver> observer = new CodecObserver; sp<IOMXNode> omxNode; err = omx->allocateNode(name.c_str(), observer, NULL, &omxNode); err = omx->allocateNode(name.c_str(), observer, &omxNode); if (err != OK) { client.disconnect(); return err; Loading
media/libstagefright/include/OMX.h +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ public: virtual status_t allocateNode( const char *name, const sp<IOMXObserver> &observer, sp<IBinder> *nodeBinder, sp<IOMXNode> *omxNode); sp<IOMXNode> *omxNode); virtual status_t createPersistentInputSurface( sp<IGraphicBufferProducer> *bufferProducer, Loading