Skip to content

Commit ecd7e32

Browse files
committed
Fix segfault in HTTP output when attempting to start a stream without source config
1 parent e17ae62 commit ecd7e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
576576

577577
// Only use configured source if not manually overridden. Abort if no config is available.
578578
if (!filename.size()){
579-
if (!stream_cfg){
579+
if (!stream_cfg || !stream_cfg.isMember("source") || !stream_cfg["source"].isString() || !stream_cfg["source"]){
580580
MEDIUM_MSG("Stream %s not configured, no source manually given, cannot start", streamname.c_str());
581581
return false;
582582
}

0 commit comments

Comments
 (0)