aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-23 12:24:41 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit7a222198086e2c2ce7a19a989d1feee0cd31d8ab (patch)
tree5565d6998605e25c95b3ec314e8d78856afd9692 /src/main.cpp
parentf4f5f3f8f86f55c658358ec8b4f120b9fcc64d70 (diff)
main: check that outputs are available before running main loop
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cd8d67d..0acf201 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -92,6 +92,9 @@ int main(int argc, char **argv) {
if (!c.c)
fatal("ivi_controller global not available");
+ if (c.outputs.empty())
+ fatal("no output was set up!");
+
while (check_events(d.get(), &c, STDIN_FILENO) != -1) {
c.c->execute_pending();
}