]> git.sesse.net Git - nageru/commitdiff
Be slightly clearer about what happens when we try to enable output with no matching...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:17:20 +0000 (21:17 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:17:20 +0000 (21:17 +0200)
bmusb
decklink_output.cpp

diff --git a/bmusb b/bmusb
index 36ed21d8e2c4590d7f6489efc05489f21da8d5be..b18056fe32dd46134d7f12165bfa083378f2d9bb 160000 (submodule)
--- a/bmusb
+++ b/bmusb
@@ -1 +1 @@
-Subproject commit 36ed21d8e2c4590d7f6489efc05489f21da8d5be
+Subproject commit b18056fe32dd46134d7f12165bfa083378f2d9bb
index d6ce684385dadff2a9234fc86a4b582993556734..f2ac40b8a9600f417399dd64efeedf92ff2d84fc 100644 (file)
@@ -67,6 +67,11 @@ void DeckLinkOutput::start_output(uint32_t mode, int64_t base_pts)
        assert(output);
        assert(!playback_initiated);
 
+       if (video_modes.empty()) {
+               fprintf(stderr, "ERROR: No matching output modes for %dx%d found\n", width, height);
+               exit(1);
+       }
+
        should_quit.unquit();
        playback_initiated = true;
        playback_started = false;