Commit a457abc9 authored by Jacob Walser's avatar Jacob Walser

Don't declare status accessors if there is no gstreamer support

parent 4ce68a44
...@@ -25,12 +25,12 @@ QGC_LOGGING_CATEGORY(VideoReceiverLog, "VideoReceiverLog") ...@@ -25,12 +25,12 @@ QGC_LOGGING_CATEGORY(VideoReceiverLog, "VideoReceiverLog")
VideoReceiver::VideoReceiver(QObject* parent) VideoReceiver::VideoReceiver(QObject* parent)
: QObject(parent) : QObject(parent)
#if defined(QGC_GST_STREAMING)
, _running(false) , _running(false)
, _recording(false) , _recording(false)
, _streaming(false) , _streaming(false)
, _starting(false) , _starting(false)
, _stopping(false) , _stopping(false)
#if defined(QGC_GST_STREAMING)
, _sink(NULL) , _sink(NULL)
, _tee(NULL) , _tee(NULL)
, _pipeline(NULL) , _pipeline(NULL)
......
...@@ -32,24 +32,27 @@ class VideoReceiver : public QObject ...@@ -32,24 +32,27 @@ class VideoReceiver : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
#if defined(QGC_GST_STREAMING)
Q_PROPERTY(bool recording READ recording NOTIFY recordingChanged) Q_PROPERTY(bool recording READ recording NOTIFY recordingChanged)
#endif
explicit VideoReceiver(QObject* parent = 0); explicit VideoReceiver(QObject* parent = 0);
~VideoReceiver(); ~VideoReceiver();
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
void setVideoSink(GstElement* _sink); void setVideoSink(GstElement* sink);
#endif
bool running() { return _running; } bool running() { return _running; }
bool recording() { return _recording; } bool recording() { return _recording; }
bool streaming() { return _streaming; } bool streaming() { return _streaming; }
bool starting() { return _starting; } bool starting() { return _starting; }
bool stopping() { return _stopping; } bool stopping() { return _stopping; }
#endif
signals: signals:
void recordingChanged();
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
void recordingChanged();
void msgErrorReceived(); void msgErrorReceived();
void msgEOSReceived(); void msgEOSReceived();
void msgStateChangedReceived(); void msgStateChangedReceived();
......
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