projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d60b2c1
)
When create_input() fails, give an error message instead of crashing.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 11 Apr 2013 19:46:10 +0000
(21:46 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 11 Apr 2013 19:46:10 +0000
(21:46 +0200)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index
03ef0d7
..
25f82eb
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-269,6
+269,11
@@
vector<Input *> create_inputs(const vector<ConfigLine> &config,
}
if (input == NULL) {
input = create_input(stream_id, src);
+ if (input == NULL) {
+ fprintf(stderr, "ERROR: did not understand URL '%s', clients will not get any data.\n",
+ src.c_str());
+ continue;
+ }
}
input->run();
inputs.push_back(input);