]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Fix a use-after-free when using video inputs. Found by GCC's -fsanitize=address.
[nageru] / mixer.cpp
index 3ce49c18cf9bda311a17604d025607b647c8310c..31277f1cd87af1bf2e03a67a1f169dcdf8f8c03a 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -1334,7 +1334,7 @@ void Mixer::render_one_frame(int64_t duration)
        // The theme can't (or at least shouldn't!) call connect_signal() on
        // each FFmpeg input, so we'll do it here.
        for (const pair<LiveInputWrapper *, FFmpegCapture *> &conn : theme->get_signal_connections()) {
-               conn.first->connect_signal_raw(conn.second->get_card_index());
+               conn.first->connect_signal_raw(conn.second->get_card_index(), input_state);
        }
 
        // If HDMI/SDI output is active and the user has requested auto mode,