Fix initialization order
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Fri, 16 Jan 2015 12:43:35 +0000 (13:43 +0100)
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Mon, 19 Jan 2015 14:01:51 +0000 (15:01 +0100)
Avoid the following warning:

In file included from qgstreamerplayersession.cpp:34:0:
qgstreamerplayersession.h: In constructor ‘QGstreamerPlayerSession::QGstreamerPlayerSession(QObject*)’:
qgstreamerplayersession.h:203:10: warning: ‘QGstreamerPlayerSession::m_usingColorspaceElement’ will be initialized after [-Wreorder]
     bool m_usingColorspaceElement;
          ^
qgstreamerplayersession.h:197:17: warning:   ‘GstElement* QGstreamerPlayerSession::m_videoSink’ [-Wreorder]
     GstElement* m_videoSink;
                 ^
qgstreamerplayersession.cpp:107:1: warning:   when initialized here [-Wreorder]
 QGstreamerPlayerSession::QGstreamerPlayerSession(QObject *parent)
 ^

Change-Id: Ic4dfe6ead19db8d581cc7de622f478e63524715b
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp

index b5c354d..eb55628 100644 (file)
@@ -110,10 +110,10 @@ QGstreamerPlayerSession::QGstreamerPlayerSession(QObject *parent)
      m_pendingState(QMediaPlayer::StoppedState),
      m_busHelper(0),
      m_playbin(0),
+     m_videoSink(0),
 #if !GST_CHECK_VERSION(1,0,0)
      m_usingColorspaceElement(false),
 #endif
-     m_videoSink(0),
      m_pendingVideoSink(0),
      m_nullVideoSink(0),
      m_audioSink(0),