arm try improve fast backward

Origin commit data
------------------
Branch: master
Commit: 785f0bee1c
Author: max_10 <max_10@gmx.de>
Date: 2018-01-24 (Wed, 24 Jan 2018)


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

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2018-01-24 01:11:57 +01:00
parent bbedc17e75
commit 960f78ea17
2 changed files with 46 additions and 17 deletions

View File

@@ -96,20 +96,7 @@ static void SupervisorThread(Context_t *context)
playback_printf(10, ">\n");
while (context && context->playback && context->playback->isPlaying && !context->playback->abortRequested)
{
if (context->playback->BackWard != 0)
{
/* Offset -3 seconds for backward
* so initial backward speed is 4x */
int64_t pos = (int64_t)context->playback->Speed - 3;
playback_printf(10, "Speed %d BackWard %d to seek %lld\n", context->playback->Speed, context->playback->BackWard, pos);
context->playback->isSeeking = 1;
context->output->Command(context, OUTPUT_CLEAR, NULL);
context->container->selectedContainer->Command(context, CONTAINER_SEEK, &pos);
context->playback->isSeeking = 0;
usleep(350000);
} else {
usleep(100000);
}
usleep(100000);
}
playback_printf(10, "<\n");
hasThreadStarted = 2;