Gstreamer media backend cleanup.
Moved controls specific bus/sync messages handling from player/camera/capture session to corresponding controls. Reviewed-by: Michael Goddard Change-Id: Ieb67976ed335b0ef1cde87dc60e8ad8da3409526 Reviewed-on: http://codereview.qt.nokia.com/2535 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
6eac3bd648
commit
e70ebfd2ed
@@ -62,14 +62,19 @@ class QGstreamerVideoRendererInterface;
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
class QGstreamerPlayerSession : public QObject, public QGstreamerSyncEventFilter
|
||||
class QGstreamerPlayerSession : public QObject,
|
||||
public QGstreamerBusMessageFilter
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QGstreamerBusMessageFilter)
|
||||
|
||||
public:
|
||||
QGstreamerPlayerSession(QObject *parent);
|
||||
virtual ~QGstreamerPlayerSession();
|
||||
|
||||
GstElement *playbin() const;
|
||||
QGstreamerBusHelper *bus() const { return m_busHelper; }
|
||||
|
||||
QNetworkRequest request() const;
|
||||
|
||||
QMediaPlayer::State state() const { return m_state; }
|
||||
@@ -105,7 +110,7 @@ public:
|
||||
int activeStream(QMediaStreamsControl::StreamType streamType) const;
|
||||
void setActiveStream(QMediaStreamsControl::StreamType streamType, int streamNumber);
|
||||
|
||||
bool processSyncMessage(const QGstreamerMessage &message);
|
||||
bool processBusMessage(const QGstreamerMessage &message);
|
||||
|
||||
#if defined(HAVE_GST_APPSRC)
|
||||
QGstAppSrc *appsrc() const { return m_appSrc; }
|
||||
@@ -145,7 +150,6 @@ signals:
|
||||
void playbackRateChanged(qreal);
|
||||
|
||||
private slots:
|
||||
void busMessage(const QGstreamerMessage &message);
|
||||
void getStreamsInfo();
|
||||
void setSeekable(bool);
|
||||
void finishVideoOutputChange();
|
||||
|
||||
Reference in New Issue
Block a user