+#ifdef HAVE_SRT
+ // SRT inputs are more like regular inputs than FFmpeg inputs,
+ // so show them as such. (This allows the user to right-click
+ // to select a different input.)
+ return static_cast<FFmpegCapture *>(cards[card_index].capture.get())->get_srt_sock() == -1;
+#else
+ return true;
+#endif
+ }
+
+ bool card_is_active(unsigned card_index) const {
+ assert(card_index < MAX_VIDEO_CARDS);
+ std::lock_guard<std::mutex> lock(card_mutex);
+ return cards[card_index].capture != nullptr;
+ }
+
+ void force_card_active(unsigned card_index)
+ {
+ // handle_hotplugged_cards() will pick this up.
+ std::lock_guard<std::mutex> lock(card_mutex);
+ cards[card_index].force_active = true;