fix segfault in backward

Origin commit data
------------------
Branch: master
Commit: 7381cf04bb
Author: redblue-pkt <redblue-pkt@orange.pl>
Date: 2018-10-04 (Thu, 04 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
redblue-pkt
2018-10-04 00:26:23 +02:00
committed by max_10
parent 490ecd582b
commit b41267f19d
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -19,3 +19,6 @@ Makefile.in
*.o *.o
*.Plo *.Plo
*.Po *.Po
git-*
go_*

View File

@@ -578,7 +578,7 @@ static int PlaybackFastBackward(Context_t *context, int *speed)
context->playback->BackWard = 0; context->playback->BackWard = 0;
context->playback->SlowMotion = 0; context->playback->SlowMotion = 0;
context->playback->Speed = 0; context->playback->Speed = 0;
context->output->Command(context, OUTPUT_AUDIOMUTE, "0"); //context->output->Command(context, OUTPUT_AUDIOMUTE, "0");
} }
else else
{ {
@@ -589,7 +589,7 @@ static int PlaybackFastBackward(Context_t *context, int *speed)
context->playback->SlowMotion = 0; context->playback->SlowMotion = 0;
context->playback->Speed = *speed; context->playback->Speed = *speed;
context->playback->isSeeking = 1; context->playback->isSeeking = 1;
context->output->Command(context, OUTPUT_AUDIOMUTE, "1"); //context->output->Command(context, OUTPUT_AUDIOMUTE, "1");
playback_printf(1, "Speed: %d, Backward: %d\n", context->playback->Speed, context->playback->BackWard); playback_printf(1, "Speed: %d, Backward: %d\n", context->playback->Speed, context->playback->BackWard);
} }