From 566ccea27995b03375a06c8e3d8b156edb4f3db1 Mon Sep 17 00:00:00 2001 From: DboxOldie <> Date: Fri, 14 Feb 2020 08:22:45 +0100 Subject: [PATCH] libeplayer3-sh4: select audio at start --- libeplayer3-sh4/input.cpp | 2 +- libeplayer3/container/container_ffmpeg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libeplayer3-sh4/input.cpp b/libeplayer3-sh4/input.cpp index 4663df6..9ade24c 100644 --- a/libeplayer3-sh4/input.cpp +++ b/libeplayer3-sh4/input.cpp @@ -768,7 +768,7 @@ bool Input::SwitchAudio(Track *track) { audioTrack = track; player->output.SwitchAudio(track ? track : NULL); - // player->Seek(-5000, false); + player->Seek((int64_t)(-8 * AV_TIME_BASE), false); return true; } diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 9655e37..75109ac 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -3140,7 +3140,7 @@ static int32_t container_ffmpeg_switch_audio(Context_t *context, int32_t *arg __ releaseMutex(__FILE__, __FUNCTION__, __LINE__); /* Hellmaster1024: nothing to do here! */ - int64_t sec = -1; + int64_t sec = -3; context->playback->Command(context, PLAYBACK_SEEK, (void *)&sec); return cERR_CONTAINER_FFMPEG_NO_ERROR; }