From 073e856d9a5aa98af5619f86042a0aa4bf555c26 Mon Sep 17 00:00:00 2001 From: "joy.you" Date: Mon, 20 Feb 2017 16:54:51 +0800 Subject: [PATCH] dead lock fixed As ffmpeg decoder does not have stream->decoder->BufferLevel,So stream->currentBufferLevel is always equal 1 --- channels/tsmf/client/tsmf_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/tsmf/client/tsmf_media.c b/channels/tsmf/client/tsmf_media.c index 6cebd15..f792949 100644 --- a/channels/tsmf/client/tsmf_media.c +++ b/channels/tsmf/client/tsmf_media.c @@ -764,7 +764,7 @@ static void* tsmf_stream_ack_func(void* arg) if (stream->eos) { while ((stream->currentBufferLevel > 0) - || !(tsmf_stream_process_ack(stream, TRUE))) + && !(tsmf_stream_process_ack(stream, TRUE))) { DEBUG_TSMF("END OF STREAM PROCESSING!"); -- 2.7.4