Skip to content

Commit

Permalink
[dvdplayer] avoid deadlock due to player state section and player locks
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Plate committed Apr 17, 2012
1 parent cad5f17 commit 638fc4f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions xbmc/cores/dvdplayer/DVDPlayer.cpp
Expand Up @@ -2425,16 +2425,18 @@ bool CDVDPlayer::SeekScene(bool bPlus)

void CDVDPlayer::GetAudioInfo(CStdString& strAudioInfo)
{
CSingleLock lock(m_StateSection);
strAudioInfo.Format("D(%s) P(%s)", m_State.demux_audio.c_str()
, m_dvdPlayerAudio.GetPlayerInfo().c_str());
{ CSingleLock lock(m_StateSection);
strAudioInfo.Format("D(%s)", m_State.demux_audio.c_str());
}
strAudioInfo.AppendFormat(" P(%s)", m_dvdPlayerAudio.GetPlayerInfo().c_str());
}

void CDVDPlayer::GetVideoInfo(CStdString& strVideoInfo)
{
CSingleLock lock(m_StateSection);
strVideoInfo.Format("D(%s) P(%s)", m_State.demux_video.c_str()
, m_dvdPlayerVideo.GetPlayerInfo().c_str());
{ CSingleLock lock(m_StateSection);
strVideoInfo.Format("D(%s)", m_State.demux_video.c_str());
}
strVideoInfo.AppendFormat(" P(%s)", m_dvdPlayerVideo.GetPlayerInfo().c_str());
}

void CDVDPlayer::GetGeneralInfo(CStdString& strGeneralInfo)
Expand Down

0 comments on commit 638fc4f

Please sign in to comment.