libeplayer3: speed up termination

This commit is contained in:
martii
2013-11-02 16:02:33 +01:00
parent 7434bcacae
commit 77f26b69a6
2 changed files with 8 additions and 2 deletions

View File

@@ -826,6 +826,9 @@ static void FFMPEGThread(Context_t *context) {
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
} /* while */
if (context && context->playback && context->output && context->playback->abortRequested)
context->output->Command(context, OUTPUT_CLEAR, NULL);
if (swr)
swr_free(&swr);
if (decoded_frame)