From 626a48ccfbb2860c3d8b738a8fce6592f64913fc Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 28 Dec 2013 22:44:10 +0100 Subject: [PATCH] libeplayer3/playback: fix seeking/neutrino bookmarks --- libeplayer3/playback/playback.c | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/libeplayer3/playback/playback.c b/libeplayer3/playback/playback.c index 725a3d6..b198702 100644 --- a/libeplayer3/playback/playback.c +++ b/libeplayer3/playback/playback.c @@ -587,28 +587,16 @@ static int PlaybackSeek(Context_t * context, float *pos, int absolute) playback_printf(10, "pos: %f\n", *pos); - if (context->playback->isPlaying && !context->playback->isForwarding - && !context->playback->BackWard && !context->playback->SlowMotion - && !context->playback->isPaused) { - context->playback->isSeeking = 1; + context->playback->isSeeking = 1; - context->output->Command(context, OUTPUT_CLEAR, NULL); + context->output->Command(context, OUTPUT_CLEAR, NULL); - if (absolute) - context->container->selectedContainer->Command(context, - CONTAINER_SEEK_ABS, - pos); - else - context->container->selectedContainer->Command(context, - CONTAINER_SEEK, - pos); + if (absolute) + context->container->selectedContainer->Command(context, CONTAINER_SEEK_ABS, pos); + else + context->container->selectedContainer->Command(context, CONTAINER_SEEK, pos); - context->playback->isSeeking = 0; - - } else { - playback_err("not possible\n"); - ret = cERR_PLAYBACK_ERROR; - } + context->playback->isSeeking = 0; playback_printf(10, "exiting with value %d\n", ret);