Commit 14e268cf authored by Val Doroshchuk's avatar Val Doroshchuk

refact

parent c52e47dc
......@@ -148,10 +148,8 @@ void QGstreamerPipeline::setMediaPlayer(QMediaPlayer *src)
connect(d->session, &QGstreamerPlayerSession::streamsChanged,
d, &QGstreamerPipelinePrivate::streamsChanged);
connect(d->session, &QGstreamerPlayerSession::pipelineChanged,
this, &QGstreamerPipeline::pipelineChanged);
connect(d->session, &QGstreamerPlayerSession::rendererIsReady,
d, &QGstreamerPipelinePrivate::updatePipeline);
......
......@@ -110,8 +110,6 @@ void QGstreamerPlaybinPrivate::onMediaPlayerChanged()
q->setAudioStream(pendingAudioStream);
q->setVideoStream(pendingVideoStream);
q->setTextStream(pendingTextStream);
updatePlaybin();
}
static GstElement *parseDesc(const QString &name)
......@@ -238,12 +236,10 @@ QGstreamerPlaybin::QGstreamerPlaybin(QMediaPlayer *media, QObject *parent)
connect(d, &QGstreamerPipelinePrivate::streamsChanged,
d, &QGstreamerPlaybinPrivate::onStreamsChanged);
connect(d, &QGstreamerPipelinePrivate::rendererIsReady,
d, &QGstreamerPlaybinPrivate::updatePlaybin);
connect(this, &QGstreamerPipeline::mediaPlayerChanged,
d, &QGstreamerPlaybinPrivate::onMediaPlayerChanged);
connect(d, &QGstreamerPipelinePrivate::rendererIsReady,
d, &QGstreamerPlaybinPrivate::updatePlaybin);
d->onMediaPlayerChanged();
}
......
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