Fixed compress deinitialization on startup

Fixed passing of poison pill to video compress when sender thread was
not actually started.
This commit is contained in:
Martin Pulec
2018-06-26 13:24:10 +02:00
parent e015adaf1e
commit 2e04129948

View File

@@ -112,6 +112,10 @@ video_rxtx::video_rxtx(map<string, param_u> const &params): 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);