Skip to content

Commit

Permalink
Merge pull request wang-bin#1 from wang-bin/master
Browse files Browse the repository at this point in the history
pull the newest src code
  • Loading branch information
taniey authored Nov 19, 2018
2 parents 3894f91 + f26fbf0 commit b0a47ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/AVPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,13 +1234,14 @@ void AVPlayer::playInternal()
d->vthread->start();
}

d->read_thread->setMediaEndAction(mediaEndAction());
d->read_thread->start();

if (d->demuxer.audioCodecContext() && d->athread)
d->athread->waitForStarted();
if (d->demuxer.videoCodecContext() && d->vthread)
d->vthread->waitForStarted();

d->read_thread->setMediaEndAction(mediaEndAction());
d->read_thread->start();

/// demux thread not started, seek tasks will be cleared
d->read_thread->waitForStarted();
if (d->timer_id < 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/FrameReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void FrameReader::readMoreInternal()
d->vframes.put(frame);
Q_EMIT frameRead(frame);
//qDebug("frame got @%.3f, queue enough: %d", frame.timestamp(), vframes.isEnough());
if (d->vframes.isEnough())
if (d->vframes.isFull())
break;
} else {
qDebug("dec error, continue to decoder");
Expand Down
2 changes: 1 addition & 1 deletion widgets/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <QBoxLayout>
#include <QMessageBox>
#include <QPushButton>
#include <QTableWidget>
#include <QTabWidget>
#include <QTextBrowser>

#include "QtAVWidgets/WidgetRenderer.h"
Expand Down

0 comments on commit b0a47ca

Please sign in to comment.