Skip to content

Commit

Permalink
improvement(decoder): fix high cpu usage problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjianneu committed Jun 16, 2020
1 parent 1d7011a commit 908803c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/codec/ActiveDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int ActiveDecoder::decode_func()

if (needWait == 0) {
std::unique_lock<std::mutex> locker(mSleepMutex);
mSleepCondition.wait_for(locker, std::chrono::milliseconds(5 * needWait), [this]() { return !mRunning; });
mSleepCondition.wait_for(locker, std::chrono::milliseconds(5), [this]() { return !mRunning; });
}
return 0;
}
Expand Down

0 comments on commit 908803c

Please sign in to comment.