mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 23:43:00 +02:00
libeplayer3/playback: fix seeking/neutrino bookmarks
This commit is contained in:
@@ -587,28 +587,16 @@ static int PlaybackSeek(Context_t * context, float *pos, int absolute)
|
|||||||
|
|
||||||
playback_printf(10, "pos: %f\n", *pos);
|
playback_printf(10, "pos: %f\n", *pos);
|
||||||
|
|
||||||
if (context->playback->isPlaying && !context->playback->isForwarding
|
context->playback->isSeeking = 1;
|
||||||
&& !context->playback->BackWard && !context->playback->SlowMotion
|
|
||||||
&& !context->playback->isPaused) {
|
|
||||||
context->playback->isSeeking = 1;
|
|
||||||
|
|
||||||
context->output->Command(context, OUTPUT_CLEAR, NULL);
|
context->output->Command(context, OUTPUT_CLEAR, NULL);
|
||||||
|
|
||||||
if (absolute)
|
if (absolute)
|
||||||
context->container->selectedContainer->Command(context,
|
context->container->selectedContainer->Command(context, CONTAINER_SEEK_ABS, pos);
|
||||||
CONTAINER_SEEK_ABS,
|
else
|
||||||
pos);
|
context->container->selectedContainer->Command(context, CONTAINER_SEEK, pos);
|
||||||
else
|
|
||||||
context->container->selectedContainer->Command(context,
|
|
||||||
CONTAINER_SEEK,
|
|
||||||
pos);
|
|
||||||
|
|
||||||
context->playback->isSeeking = 0;
|
context->playback->isSeeking = 0;
|
||||||
|
|
||||||
} else {
|
|
||||||
playback_err("not possible\n");
|
|
||||||
ret = cERR_PLAYBACK_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
playback_printf(10, "exiting with value %d\n", ret);
|
playback_printf(10, "exiting with value %d\n", ret);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user