Browse Source

Fix CustomVideoReceiver

QGC4.4
Andrew Voznytsa 5 years ago
parent
commit
1c633e8ec1
  1. 6
      custom-example/src/CustomPlugin.cc
  2. 4
      custom-example/src/CustomPlugin.h

6
custom-example/src/CustomPlugin.cc

@ -29,12 +29,8 @@ @@ -29,12 +29,8 @@
QGC_LOGGING_CATEGORY(CustomLog, "CustomLog")
CustomVideoReceiver::CustomVideoReceiver(QObject* parent)
: VideoReceiver(parent)
: GstVideoReceiver(parent)
{
#if defined(QGC_GST_STREAMING)
//-- Shorter RTSP test interval
_restart_time_ms = 1000;
#endif
}
CustomVideoReceiver::~CustomVideoReceiver()

4
custom-example/src/CustomPlugin.h

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
#include "QGCCorePlugin.h"
#include "QGCOptions.h"
#include "QGCLoggingCategory.h"
#include "VideoReceiver.h"
#include "GstVideoReceiver.h"
#include "SettingsManager.h"
#include <QTranslator>
@ -25,7 +25,7 @@ class CustomSettings; @@ -25,7 +25,7 @@ class CustomSettings;
Q_DECLARE_LOGGING_CATEGORY(CustomLog)
//-- Our own, custom video receiver
class CustomVideoReceiver : public VideoReceiver
class CustomVideoReceiver : public GstVideoReceiver
{
Q_OBJECT
public:

Loading…
Cancel
Save