ignore if pause state not changed

This commit is contained in:
wang-bin
2013-01-20 14:33:55 +08:00
parent 8b0b083f69
commit 4c1c57fcc8
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -115,6 +115,8 @@ void AVDemuxThread::stop()
void AVDemuxThread::pause(bool p)
{
if (paused == p)
return;
paused = p;
if (!paused)
cond.wakeAll();
+2
View File
@@ -54,6 +54,8 @@ bool AVOutput::isAvailable() const
void AVOutput::pause(bool p)
{
DPTR_D(AVOutput);
if (d.paused == p)
return;
d.paused = p;
if (!d.paused)
d.cond.wakeAll();
+2
View File
@@ -55,6 +55,8 @@ void AVThread::stop()
void AVThread::pause(bool p)
{
DPTR_D(AVThread);
if (d.paused == p)
return;
d.paused = p;
if (!d.paused) {
qDebug("wake up paused thread");