fix backward

This commit is contained in:
redblue-pkt
2018-10-01 21:55:31 +02:00
committed by Thilo Graf
parent ec76737c03
commit 87ffb80f3d

View File

@@ -304,7 +304,7 @@ static int PlaybackPlay(Context_t *context)
context->playback->Speed = 0; context->playback->Speed = 0;
if (context->container && context->container->selectedContainer) if (context->container && context->container->selectedContainer)
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL); ret = context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
} }
else else
{ {
@@ -568,19 +568,29 @@ static int PlaybackFastBackward(Context_t *context, int *speed)
return cERR_PLAYBACK_ERROR; return cERR_PLAYBACK_ERROR;
} }
PlaybackContinue(context);
if (*speed == 0) if (*speed == 0)
{ {
context->playback->BackWard = 0; context->playback->isPaused = 0;
context->playback->Speed = 0; /* reverse end */ //context->playback->isPlaying = 0;
context->playback->isForwarding = 0;
context->playback->BackWard = 0;
context->playback->SlowMotion = 0;
context->playback->Speed = 0;
context->output->Command(context, OUTPUT_AUDIOMUTE, "0"); context->output->Command(context, OUTPUT_AUDIOMUTE, "0");
} }
else else
{ {
context->playback->isSeeking = 1; context->playback->isPaused = 0;
context->playback->Speed = *speed; //context->playback->isPlaying = 0;
context->playback->BackWard = 1; context->playback->isForwarding = 0;
context->playback->BackWard = 1;
context->playback->SlowMotion = 0;
context->playback->Speed = *speed;
context->playback->isSeeking = 1;
context->output->Command(context, OUTPUT_AUDIOMUTE, "1"); context->output->Command(context, OUTPUT_AUDIOMUTE, "1");
playback_printf(1, "S %d B %d\n", context->playback->Speed, context->playback->BackWard); playback_printf(1, "Speed: %d, Backward: %d\n", context->playback->Speed, context->playback->BackWard);
} }
context->output->Command(context, OUTPUT_CLEAR, NULL); context->output->Command(context, OUTPUT_CLEAR, NULL);