BugFix Stream Source reload

Change stream reopen() to StreamSource reload()
This commit is contained in:
Bruno Herbelin
2023-11-13 23:03:31 +01:00
parent 378257b7bf
commit a57419150e
6 changed files with 22 additions and 18 deletions

View File

@@ -216,16 +216,6 @@ void Stream::open(const std::string &gstreamer_description, guint w, guint h)
discoverer_ = std::async(StreamDiscoverer, description_, w, h);
}
void Stream::reopen()
{
// re-openning is meaningfull only if it was already open
if (pipeline_ != nullptr) {
// reload : terminate pipeline and re-create it
close();
execute_open();
}
}
std::string Stream::description() const
{
return description_;