From 2e04129948ae53cf79d89ef36573f2a37e5f3c19 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 26 Jun 2018 13:24:10 +0200 Subject: [PATCH] Fixed compress deinitialization on startup Fixed passing of poison pill to video compress when sender thread was not actually started. --- src/video_rxtx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video_rxtx.cpp b/src/video_rxtx.cpp index a09276606..9b9cdf474 100644 --- a/src/video_rxtx.cpp +++ b/src/video_rxtx.cpp @@ -112,6 +112,10 @@ video_rxtx::video_rxtx(map const ¶ms): m_port_id("default") video_rxtx::~video_rxtx() { join(); + if (!m_poisoned && m_compression) { + send(NULL); + compress_pop(m_compression); + } module_done(CAST_MODULE(m_compression)); module_done(&m_receiver_mod); module_done(&m_sender_mod);