Commit ed294e59 authored by Val Doroshchuk's avatar Val Doroshchuk

test

parent 24638fbb
......@@ -39,10 +39,7 @@
#include "qgstreamermediaplayer.h"
#include <private/qgstreamervideorenderer_p.h>
#include <private/qgstreamerplayercontrol_p.h>
#include <private/qgstreamerplayersession_p.h>
#include <private/qgstvideorenderersink_p.h>
#include <QPointer>
#include <QMediaService>
#include <QtMultimedia/qmediametadata.h>
......@@ -310,6 +307,7 @@ void QGstreamerMediaPlayer::setMediaObject(QMediaObject *src)
connect(d->session, &QGstreamerPlayerSession::rendererChanged,
[d](QGstreamerVideoRendererInterface *r) {
d->renderer = static_cast<QGstreamerVideoRenderer *>(r);
// Set pipeline when surface is ready.
d->updatePipeline();
});
......
......@@ -173,10 +173,12 @@ Item {
function test_setTextStream() {
spyTextStream.clear()
control.textStream = 0
compare(control.textStream, 0)
compare(spyTextStream.count, 1)
control.textStream = 1
compare(control.textStream, 1)
compare(spyTextStream.count, 1)
compare(spyTextStream.count, 2)
}
function test_textStreamProperties() {
......
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