Minor changes in SRT and generator sources to help user

Clearly state 'listener' and 'call' roles for SRT. Add a '>' indicator to indicate if a generator is playable.
This commit is contained in:
Bruno Herbelin
2022-02-18 19:09:37 +01:00
parent 297d271e63
commit f580673dea
3 changed files with 22 additions and 18 deletions

View File

@@ -103,7 +103,7 @@ std::string VideoBroadcast::init(GstCaps *caps)
// TODO Configure options
// setup SRT streaming sink properties
g_object_set (G_OBJECT (gst_bin_get_by_name (GST_BIN (pipeline_), "sink")),
"latency", 500,
"latency", 1000,
"wait-for-connection", false,
NULL);
@@ -186,11 +186,11 @@ std::string VideoBroadcast::info() const
std::ostringstream ret;
if (!initialized_)
ret << "Starting";
ret << "Starting SRT";
else if (active_)
ret << "SRT Broadcast on Port " << port_;
ret << "SRT Broadcast on Port " << port_ << " (listener mode)";
else
ret << "Terminated";
ret << "SRT Terminated";
return ret.str();
}