Ticket #8626: NuppelVideoPlayer.patch
File NuppelVideoPlayer.patch, 1.9 KB (added by , 14 years ago) |
---|
-
libs/libmythtv/NuppelVideoPlayer.cpp
166 166 // State 167 167 decoderPaused(false), pauseDecoder(false), unpauseDecoder(false), 168 168 killdecoder(false), decoderSeek(0), decodeOneFrame(false), 169 needNewPauseFrame(false), 169 needNewPauseFrame(false), decoderThreadUnpauseSignal(false), 170 170 bufferPaused(false), videoPaused(false), 171 171 allpaused(false), playing(false), 172 172 … … 2573 2573 if (QThread::currentThread() == (QThread*)decoderThread) 2574 2574 { 2575 2575 decoderPaused = false; 2576 decoderThreadUnpauseSignal = true; 2577 decoderPauseLock.unlock(); 2576 2578 decoderThreadUnpause.wakeAll(); 2577 decoderPauseLock.unlock();2578 2579 return; 2579 2580 } 2580 2581 2582 bool status; 2581 2583 unpauseDecoder = true; 2582 while (!decoderThreadUnpause.wait(&decoderPauseLock, 100)) 2584 while (decoderThreadUnpauseSignal == false) 2585 { 2586 status = decoderThreadUnpause.wait(&decoderPauseLock, 100); 2587 if (status) 2588 { 2589 decoderThreadUnpauseSignal = false; 2590 break; 2591 } 2583 2592 VERBOSE(VB_IMPORTANT, LOC_WARN + "Waited 100ms for decoder to unpause"); 2593 } 2584 2594 unpauseDecoder = false; 2585 2595 decoderPauseLock.unlock(); 2586 2596 } -
libs/libmythtv/NuppelVideoPlayer.h
493 493 QWaitCondition decoderThreadUnpause; 494 494 mutable QMutex decoderPauseLock; 495 495 mutable QMutex decoderSeekLock; 496 bool decoderThreadUnpauseSignal; 496 497 bool decoderPaused; 497 498 bool pauseDecoder; 498 499 bool unpauseDecoder;