Bugfix change device source resolution

This commit is contained in:
Bruno
2021-05-25 09:08:51 +02:00
parent 2ccbf1ec12
commit b606f479e9
3 changed files with 11 additions and 0 deletions

View File

@@ -384,10 +384,13 @@ void DeviceSource::setDevice(const std::string &devicename)
pipeline << " ! videoconvert";
dettach();
// open gstreamer
stream_->open( pipeline.str(), best.width, best.height);
stream_->play(true);
// will be ready after init and one frame rendered
ready_ = false;
}