Kill VideoContext::playMutex. I assume it was a relic from the old threaded video display code as it's completely pointless.

Originally committed to SVN as r5961.
This commit is contained in:
Thomas Goyne 2011-12-05 05:26:38 +00:00
parent 73ee949d55
commit 1f534bc757
2 changed files with 1 additions and 10 deletions

View File

@ -434,13 +434,7 @@ void VideoContext::Stop() {
} }
} }
void VideoContext::OnPlayTimer(wxTimerEvent &event) { void VideoContext::OnPlayTimer(wxTimerEvent &) {
// Lock
wxMutexError res = playMutex.TryLock();
if (res == wxMUTEX_BUSY) return;
playMutex.Unlock();
wxMutexLocker lock(playMutex);
// Get time difference // Get time difference
int dif = playTime.Time(); int dif = playTime.Time();

View File

@ -92,9 +92,6 @@ class VideoContext : public wxEvtHandler {
/// DOCME /// DOCME
wxString keyFramesFilename; wxString keyFramesFilename;
/// DOCME
wxMutex playMutex;
/// DOCME /// DOCME
wxTimer playback; wxTimer playback;