libeplayer3-arm: fix fast forward (thx DboxOldie)

Conflicts:
	libeplayer3-arm/playback/playback.c

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: master
Commit: fc5c510334
Author: Frankenstone <dampf_acc@online.de>
Date: 2018-01-19 (Fri, 19 Jan 2018)



------------------
This commit was generated by Migit
This commit is contained in:
Frankenstone
2018-01-19 15:09:41 +01:00
committed by Thilo Graf
parent 50a1b98d03
commit c3fa4a96de
2 changed files with 6 additions and 2 deletions

View File

@@ -401,6 +401,10 @@ int LinuxDvbContinue(Context_t *context __attribute__((unused)), char *type)
linuxdvb_printf(10, "v%d a%d\n", video, audio); linuxdvb_printf(10, "v%d a%d\n", video, audio);
if (video && videofd != -1) if (video && videofd != -1)
{ {
if (context->playback->isForwarding == 0)
{
ioctl(videofd, VIDEO_FAST_FORWARD, 0);
}
if (ioctl(videofd, VIDEO_CONTINUE, NULL) == -1) if (ioctl(videofd, VIDEO_CONTINUE, NULL) == -1)
{ {
linuxdvb_err("ioctl failed with errno %d\n", errno); linuxdvb_err("ioctl failed with errno %d\n", errno);

View File

@@ -310,15 +310,15 @@ static int32_t PlaybackContinue(Context_t *context)
(context->playback->isPaused || context->playback->isForwarding || (context->playback->isPaused || context->playback->isForwarding ||
context->playback->BackWard || context->playback->SlowMotion)) 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_CLEAR, NULL);
context->output->Command(context, OUTPUT_CONTINUE, NULL);
context->playback->isPaused = 0; context->playback->isPaused = 0;
//context->playback->isPlaying = 1; //context->playback->isPlaying = 1;
context->playback->isForwarding = 0; context->playback->isForwarding = 0;
context->playback->BackWard = 0; context->playback->BackWard = 0;
context->playback->SlowMotion = 0; context->playback->SlowMotion = 0;
context->playback->Speed = 1; context->playback->Speed = 1;
context->output->Command(context, OUTPUT_CONTINUE, NULL);
} }
else else
{ {