Commit 32d64263 authored by Val Doroshchuk's avatar Val Doroshchuk

Add dtor

parent e9418c8e
Pipeline #1136 failed with stages
......@@ -62,9 +62,8 @@ class QGstreamerMediaPlayerPrivate : public QObject
Q_DECLARE_PUBLIC(QGstreamerMediaPlayer)
public:
QGstreamerMediaPlayerPrivate(QGstreamerMediaPlayer *q, QObject *parent)
: QObject(parent)
, q_ptr(q)
QGstreamerMediaPlayerPrivate(QGstreamerMediaPlayer *q)
: q_ptr(q)
{
}
......@@ -260,10 +259,15 @@ QGstreamerMediaPlayer::QGstreamerMediaPlayer(QMediaObject *media, QObject *paren
QGstreamerMediaPlayer::QGstreamerMediaPlayer(QObject *parent)
: QObject(parent)
, d_ptr(new QGstreamerMediaPlayerPrivate(this, parent))
, d_ptr(new QGstreamerMediaPlayerPrivate(this))
{
}
QGstreamerMediaPlayer::~QGstreamerMediaPlayer()
{
delete d_ptr;
}
QObject *QGstreamerMediaPlayer::source() const
{
return d_func()->source.data();
......
......@@ -69,6 +69,7 @@ class Q_MULTIMEDIA_EXPORT QGstreamerMediaPlayer : public QObject
public:
QGstreamerMediaPlayer(QMediaObject *player, QObject *parent = nullptr);
QGstreamerMediaPlayer(QObject *parent = nullptr);
~QGstreamerMediaPlayer();
QObject *source() const;
void setSource(QObject *source);
......
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