Various UI improvements

This commit is contained in:
Bruno Herbelin
2023-08-17 17:51:29 +02:00
parent aaefa356ae
commit e92e9eb45c
6 changed files with 122 additions and 65 deletions

View File

@@ -212,9 +212,11 @@ void Stream::open(const std::string &gstreamer_description, guint w, guint h)
if (isOpen())
close();
// reset failed flag
failed_ = false;
// open when ready
discoverer_ = std::async(StreamDiscoverer, description_, w, h);
}
void Stream::reopen()
@@ -667,7 +669,7 @@ void Stream::update()
}
// invalid info; fail
else
fail("Could not create stream: " + i.message);
fail("Stream error : " + i.message);
}
}
// wait next frame to display