forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clearing packetqueue and setting clock from avdemux thread.
If the packetqueue was cleared in the seek function then it can happen that seek clears the packetqueue, then the other thread puts an other packet with high timestamp and videothread takes it. In this case the videothread waits a lot and video just freezes. This was fixed by putting the clear into the SeekTask's run function. When I fixed this I realized that the clock is sometimes wrong,too, so I put the clock updates into the SeekTask, too. I am not sure if this is the perfect solution to make videothread's waitAndCheck always work correctly, but it's definitely improved.
- Loading branch information
Adam Bakai
committed
Aug 8, 2018
1 parent
34afa14
commit cef6afc
Showing
3 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters