mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Oops, always grab the first, not latest, audio pts.
In case it wraps around.
This commit is contained in:
parent
a5e374fc57
commit
16f08cfde0
1 changed files with 2 additions and 5 deletions
|
@ -163,13 +163,10 @@ private:
|
|||
u64 pts = findPts(earliest, latest);
|
||||
|
||||
// If it wraps around, we have to look at the other half too.
|
||||
if (start + packetSize > bufQueueSize) {
|
||||
if (pts == 0 && start + packetSize > bufQueueSize) {
|
||||
earliest = ptsMarks.begin();
|
||||
latest = ptsMarks.lower_bound(start + packetSize - bufQueueSize);
|
||||
u64 pts2 = findPts(earliest, latest);
|
||||
if (pts2 != 0) {
|
||||
pts = pts2;
|
||||
}
|
||||
return findPts(earliest, latest);
|
||||
}
|
||||
|
||||
return pts;
|
||||
|
|
Loading…
Add table
Reference in a new issue