Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentyn Doroshchuk WX1158589 committed May 2, 2024
1 parent 1dab6fd commit ffe6cb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/QtAVPlayer/qavaudiooutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class QAVAudioOutputPrivate
audioOutput->setVolume(v);
// Start sending the audio frames from the queue to render
device->start();
qDebug()<<__FUNCTION__<<"before start["<<QThread::currentThread()<<q_ptr->thread();
qDebug()<<__FUNCTION__<<"before start["<<audioOutput->state() << audioOutput->error();
audioOutput->start(device.get());
qDebug()<<__FUNCTION__<<"after start]";
}
Expand All @@ -163,6 +163,7 @@ QAVAudioOutput::~QAVAudioOutput()
Q_D(QAVAudioOutput);
stop();
d->audioThread->quit();
qDebug()<<__FUNCTION__<<"before wait["<<QThread::currentThread()<<":"<<thread()<<":"<<d->audioThread.get();
d->audioThread->wait();
}

Expand Down
2 changes: 0 additions & 2 deletions src/QtAVPlayer/qavaudiooutputdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ qint64 QAVAudioOutputDevice::readData(char *data, qint64 len)

void QAVAudioOutputDevice::play(const QAVAudioFrame &frame)
{
qDebug()<<" QAVAudioOutputDevice:"<<__FUNCTION__<<"["<<QThread::currentThread()<<thread();
Q_D(QAVAudioOutputDevice);
{
QMutexLocker locker(&d->mutex);
d->frames.push_back(frame);
d->bytes += frame.data().size();
}
qDebug()<<" QAVAudioOutputDevice:"<<__FUNCTION__<<"]";
d->cond.wakeAll();
}

Expand Down

0 comments on commit ffe6cb8

Please sign in to comment.