mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Change READY state of source
a source is ready after rendering one frame (which is after being initialized)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user