mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 21:40:15 +00:00
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:
@@ -112,6 +112,10 @@ video_rxtx::video_rxtx(map<string, param_u> 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);
|
||||
|
||||
Reference in New Issue
Block a user