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