]> git.sesse.net Git - nageru/commitdiff
When the master card times out, print a message.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Jun 2020 19:29:46 +0000 (21:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Jun 2020 19:29:46 +0000 (21:29 +0200)
nageru/mixer.cpp

index 1c64c985e1e719a09402f8392d487755f1ff2d92..26296180ac1371a0f14486849d451639d7a3d092 100644 (file)
@@ -1489,6 +1489,10 @@ start:
                                return !cards[master_card_index].new_frames.empty() ||
                                        cards[master_card_index].capture->get_disconnected();
                        });
+               if (timed_out) {
+                       fprintf(stderr, "WARNING: Master card (%s) did not deliver a frame for 100 ms, creating a fake one.\n",
+                               description_for_card(master_card_index).c_str());
+               }
        }
 
        if (timed_out) {