Skip to content

Commit

Permalink
fix(superMediaPlayer): add lock when call GetProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan authored and pingkai committed Sep 21, 2020
1 parent 997e57f commit 647c08b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ std::string SuperMediaPlayer::GetPropertyString(PropertyKey key)
}

case PROPERTY_KEY_DELAY_INFO: {
std::lock_guard<std::mutex> uMutex(mCreateMutex);
if (nullptr != mDemuxerService) {
string ret = mDemuxerService->GetProperty(0, "delayInfo");
return ret;
Expand Down

0 comments on commit 647c08b

Please sign in to comment.