mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-29 16:31:12 +02:00
libeplayer3-arm: fix fast forward (thx DboxOldie)
Conflicts: libeplayer3-arm/playback/playback.c Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -401,6 +401,10 @@ int LinuxDvbContinue(Context_t *context __attribute__((unused)), char *type)
|
||||
linuxdvb_printf(10, "v%d a%d\n", video, audio);
|
||||
if (video && videofd != -1)
|
||||
{
|
||||
if (context->playback->isForwarding == 0)
|
||||
{
|
||||
ioctl(videofd, VIDEO_FAST_FORWARD, 0);
|
||||
}
|
||||
if (ioctl(videofd, VIDEO_CONTINUE, NULL) == -1)
|
||||
{
|
||||
linuxdvb_err("ioctl failed with errno %d\n", errno);
|
||||
|
@@ -310,15 +310,15 @@ static int32_t PlaybackContinue(Context_t *context)
|
||||
(context->playback->isPaused || context->playback->isForwarding ||
|
||||
context->playback->BackWard || context->playback->SlowMotion))
|
||||
{
|
||||
if (context->playback->SlowMotion)
|
||||
if (context->playback->SlowMotion || context->playback->isForwarding)
|
||||
context->output->Command(context, OUTPUT_CLEAR, NULL);
|
||||
context->output->Command(context, OUTPUT_CONTINUE, NULL);
|
||||
context->playback->isPaused = 0;
|
||||
//context->playback->isPlaying = 1;
|
||||
context->playback->isForwarding = 0;
|
||||
context->playback->BackWard = 0;
|
||||
context->playback->SlowMotion = 0;
|
||||
context->playback->Speed = 1;
|
||||
context->output->Command(context, OUTPUT_CONTINUE, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user