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

refact

parent 923ef1f7
...@@ -133,18 +133,16 @@ void QGstreamerPlaybinPrivate::updatePlaybin() ...@@ -133,18 +133,16 @@ void QGstreamerPlaybinPrivate::updatePlaybin()
Q_Q(QGstreamerPlaybin); Q_Q(QGstreamerPlaybin);
auto r = renderer(); auto r = renderer();
if (!r || !r->isReady()) if (!r || !r->isReady() || pendingVideoSinkDesc.isEmpty())
return; return;
if (!pendingVideoSinkDesc.isEmpty()) { GstElement *videoSink = parseDesc(pendingVideoSinkDesc);
GstElement *videoSink = parseDesc(pendingVideoSinkDesc); if (videoSink) {
if (videoSink) { videoSinkDesc = pendingVideoSinkDesc;
videoSinkDesc = pendingVideoSinkDesc; pendingVideoSinkDesc.clear();
pendingVideoSinkDesc.clear(); r->setVideoSink(videoSink);
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