Skip to content

Commit

Permalink
clear tasks in avthread and demuxthread when thread restarted
Browse files Browse the repository at this point in the history
should fix accident seek and no display in next playback if user seek to
a video eof
  • Loading branch information
wang-bin committed Feb 10, 2015
1 parent 55dcd78 commit fe17dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/AVDemuxThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 390,7 @@ void AVDemuxThread::run()
vqueue->clear();
vqueue->setBlocking(true);
}
seek_tasks.clear();
while (!end) {
if (end || demuxer->atEnd()) {
end = true;
Expand Down
1 change: 1 addition & 0 deletions src/AVThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 250,7 @@ void AVThread::resetState()
{
DPTR_D(AVThread);
pause(false);
d.tasks.clear();
d.render_pts0 = 0;
d.stop = false;
d.demux_end = false;
Expand Down

0 comments on commit fe17dea

Please sign in to comment.