mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 19:29:58 +01:00
BugFix Stream Source reload
Change stream reopen() to StreamSource reload()
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user