From a277e22fda6634f28cd20d38dc5e045c0b0eed49 Mon Sep 17 00:00:00 2001 From: martii Date: Wed, 11 Dec 2013 09:13:25 +0100 Subject: [PATCH] libspark/playback: speed up abort Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/43b0c8c184f79a490af249526daeaaab6e06e699 Author: martii Date: 2013-12-11 (Wed, 11 Dec 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/playback/playback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeplayer3/playback/playback.c b/libeplayer3/playback/playback.c index a54922b..033b9e1 100644 --- a/libeplayer3/playback/playback.c +++ b/libeplayer3/playback/playback.c @@ -413,7 +413,7 @@ static int PlaybackTerminate(Context_t * context) if (context && context->playback && context->playback->isPlaying) { //First Flush and than delete container, else e2 cant read length of file anymore - if (context->output->Command(context, OUTPUT_FLUSH, NULL) < 0) { + if (!context->playback->abortRequested && context->output->Command(context, OUTPUT_FLUSH, NULL) < 0) { playback_err("failed to flush output.\n"); }