Commit ec579650 authored by Val Doroshchuk's avatar Val Doroshchuk

test

parent 70ede91b
......@@ -213,15 +213,17 @@ static GstElement *parseDesc(const QString &name)
void QGstreamerMediaPlayerPrivate::updatePipeline()
{
Q_Q(QGstreamerMediaPlayer);
if (pendingPipelineDesc.isEmpty()
|| !session->renderer()
|| !session->renderer()->isReady()) {
if (pendingPipelineDesc.isEmpty() || !session->renderer())
return;
}
auto videoRenderer = static_cast<QGstreamerVideoRenderer *>(session->renderer());
if (videoRenderer)
// Check if the renderer provides a surface.
if (videoRenderer) {
if (!videoRenderer->isReady())
return;
QGstVideoRendererSink::setSurface(videoRenderer->surface());
}
QString p = pendingPipelineDesc;
pendingPipelineDesc.clear();
......
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