m_videoSink = 0;
if (m_surface) {
- disconnect(m_surface, SIGNAL(supportedFormatsChanged()),
+ disconnect(m_surface.data(), SIGNAL(supportedFormatsChanged()),
this, SLOT(handleFormatChange()));
}
m_surface = surface;
if (m_surface) {
- connect(m_surface, SIGNAL(supportedFormatsChanged()),
+ connect(m_surface.data(), SIGNAL(supportedFormatsChanged()),
this, SLOT(handleFormatChange()));
}
#include <qvideorenderercontrol.h>
#include <private/qvideosurfacegstsink_p.h>
+#include <qabstractvideosurface.h>
#include "qgstreamervideorendererinterface_p.h"
private:
QVideoSurfaceGstSink *m_videoSink;
- QAbstractVideoSurface *m_surface;
+ QPointer<QAbstractVideoSurface> m_surface;
};
QT_END_NAMESPACE