From 6ae2a21f9c24c229d73584d439984a12370477e5 Mon Sep 17 00:00:00 2001 From: max_10 Date: Sat, 30 Dec 2017 13:47:36 +0100 Subject: [PATCH] armbox eplayer: increase wait time (thx DboxOldie) --- libeplayer3-arm/container/container_ffmpeg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libeplayer3-arm/container/container_ffmpeg.c b/libeplayer3-arm/container/container_ffmpeg.c index 871c541..b59d534 100644 --- a/libeplayer3-arm/container/container_ffmpeg.c +++ b/libeplayer3-arm/container/container_ffmpeg.c @@ -2198,7 +2198,11 @@ static int32_t container_ffmpeg_play(Context_t *context) static int32_t container_ffmpeg_stop(Context_t *context) { int32_t ret = cERR_CONTAINER_FFMPEG_NO_ERROR; - int32_t wait_time = 10; // we give 1s to close otherwise we will force close + int32_t wait_time = 50; + /* we give 5s max. to close otherwise we will force close + * in this case, ffmpeg thread will not be terminated + * and causes in most cases a segfault + */ ffmpeg_printf(10, "\n"); if (!isContainerRunning) {