Change READY state of source

a source is ready after rendering one frame (which is after being initialized)
This commit is contained in:
Bruno
2021-05-01 00:34:58 +02:00
parent 058fde19ce
commit 381f68aaae
10 changed files with 42 additions and 21 deletions

View File

@@ -26,8 +26,12 @@ void GenericStreamSource::setDescription(const std::string &desc)
{
Log::Notify("Creating Source with Stream description '%s'", desc.c_str());
// open gstreamer
stream_->open(desc);
stream_->play(true);
// will be ready after init and one frame rendered
ready_ = false;
}
void GenericStreamSource::accept(Visitor& v)