Commit 00c6bab7 authored by Val Doroshchuk's avatar Val Doroshchuk

refact

parent 923ef1f7
......@@ -133,18 +133,16 @@ void QGstreamerPlaybinPrivate::updatePlaybin()
Q_Q(QGstreamerPlaybin);
auto r = renderer();
if (!r || !r->isReady())
if (!r || !r->isReady() || pendingVideoSinkDesc.isEmpty())
return;
if (!pendingVideoSinkDesc.isEmpty()) {
GstElement *videoSink = parseDesc(pendingVideoSinkDesc);
if (videoSink) {
videoSinkDesc = pendingVideoSinkDesc;
pendingVideoSinkDesc.clear();
r->setVideoSink(videoSink);
GstElement *videoSink = parseDesc(pendingVideoSinkDesc);
if (videoSink) {
videoSinkDesc = pendingVideoSinkDesc;
pendingVideoSinkDesc.clear();
r->setVideoSink(videoSink);
emit q->videoSinkChanged();
}
emit q->videoSinkChanged();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment