mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-03 01:33:35 +08:00
[mpp]: Fix dead lock by redundant port lock
The input / output port should NOT share the same lock. The old port lock is not necessary for task interface. Change-Id: I31e50ba539bca7389596093605c7641277ebc5a8 Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Signed-off-by: hh <hh@rock-chips.com>
This commit is contained in:
@@ -442,7 +442,6 @@ MPP_RET Mpp::poll(MppPortType type, MppPollType timeout)
|
||||
return MPP_NOK;
|
||||
|
||||
MPP_RET ret = MPP_NOK;
|
||||
AutoMutex autoLock(mPortLock);
|
||||
MppTaskQueue port = NULL;
|
||||
|
||||
switch (type) {
|
||||
@@ -468,7 +467,6 @@ MPP_RET Mpp::dequeue(MppPortType type, MppTask *task)
|
||||
return MPP_NOK;
|
||||
|
||||
MPP_RET ret = MPP_NOK;
|
||||
AutoMutex autoLock(mPortLock);
|
||||
MppTaskQueue port = NULL;
|
||||
|
||||
switch (type) {
|
||||
@@ -494,7 +492,6 @@ MPP_RET Mpp::enqueue(MppPortType type, MppTask task)
|
||||
return MPP_NOK;
|
||||
|
||||
MPP_RET ret = MPP_NOK;
|
||||
AutoMutex autoLock(mPortLock);
|
||||
MppTaskQueue port = NULL;
|
||||
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user