Commit 35ace9e2 authored by VaL Doroshchuk's avatar VaL Doroshchuk
Browse files

Gstreamer: Introduce custom pipeline


Added an ability to define custom pipeline.
Since new pipeline is used, playbin features will not work.

Registered "qtvideosink" gstreamer element to be used in pipelines.
In case if there is a need to render to QML VideoOutput element.
I.e. if a pipeline is "videotestsrc ! qtvideosink" then QGstVideoRendererSink
will be used as a sink and rendering will be done by one of QSGVideoNode's.

In this case there is a need to create a pipeline after video surface is ready.

Also added an ability to override default video sink and define custom one instead.
QGstreamerVideoRendererInterface::setVideoSink() provides functionality to override default one.

QGstreamerPlayerSession::rendererChanged() can be used to check if the renderer is ready
to create a pipeline or set custom video sink.

Task-number: QTBUG-39327
Change-Id: I635d3a07fb9a5dcf30ee63284a849b0ad3438536
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
parent 11b90699
Showing with 160 additions and 64 deletions
Supports Markdown
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