sh4 fix mp3 (thx DBoxOldie)

This commit is contained in:
BPanther
2020-02-06 18:46:29 +01:00
committed by Thilo Graf
parent 83437c3656
commit e22c3033af
2 changed files with 6 additions and 3 deletions

View File

@@ -265,7 +265,8 @@ bool Input::Play()
} }
if (!player->isBackWard) { if (!player->isBackWard) {
int64_t pts = calcPts(stream, packet.pts); int64_t pts = calcPts(stream, packet.pts);
if (!player->output.Write(stream, &packet, _videoTrack ? pts : 0)) //if (!player->output.Write(stream, &packet, _videoTrack ? pts : 0)) // DBO: why pts only at video tracks ?
if (!player->output.Write(stream, &packet, pts))
logprintf("writing data to audio device failed\n"); logprintf("writing data to audio device failed\n");
} }
audioSeen = true; audioSeen = true;

View File

@@ -317,6 +317,8 @@ bool Player::SlowMotion(int repeats)
bool Player::Seek(int64_t pos, bool absolute) bool Player::Seek(int64_t pos, bool absolute)
{ {
if (GetVideoPid())
/* Don't Clear if no video track */
output.Clear(); output.Clear();
return input.Seek(pos, absolute); return input.Seek(pos, absolute);
} }