mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
sh4 fix mp3 (thx DBoxOldie)
This commit is contained in:
@@ -265,8 +265,9 @@ 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 ?
|
||||||
logprintf("writing data to audio device failed\n");
|
if (!player->output.Write(stream, &packet, pts))
|
||||||
|
logprintf("writing data to audio device failed\n");
|
||||||
}
|
}
|
||||||
audioSeen = true;
|
audioSeen = true;
|
||||||
} else if (_subtitleTrack && (_subtitleTrack->stream == stream)) {
|
} else if (_subtitleTrack && (_subtitleTrack->stream == stream)) {
|
||||||
|
@@ -317,7 +317,9 @@ bool Player::SlowMotion(int repeats)
|
|||||||
|
|
||||||
bool Player::Seek(int64_t pos, bool absolute)
|
bool Player::Seek(int64_t pos, bool absolute)
|
||||||
{
|
{
|
||||||
output.Clear();
|
if (GetVideoPid())
|
||||||
|
/* Don't Clear if no video track */
|
||||||
|
output.Clear();
|
||||||
return input.Seek(pos, absolute);
|
return input.Seek(pos, absolute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user