mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 16:00:58 +02:00
libeplayer3-arm: fix fast forward (thx DboxOldie)
Origin commit data
------------------
Branch: master
Commit: b3b2cae989
Author: Frankenstone <dampf_acc@online.de>
Date: 2018-01-19 (Fri, 19 Jan 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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
|
||||
{
|
||||
@@ -425,6 +425,7 @@ static int PlaybackFastForward(Context_t *context, int *speed)
|
||||
context->playback->Speed = *speed;
|
||||
playback_printf(20, "Speed: %d x {%d}\n", *speed, context->playback->Speed);
|
||||
context->output->Command(context, OUTPUT_FASTFORWARD, NULL);
|
||||
context->output->Command(context, OUTPUT_CONTINUE, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user