Skip to content

Commit

Permalink
Merge pull request mavlink#5255 from dogmaphobic/videoStreaming
Browse files Browse the repository at this point in the history
Exclude method when not building with video streaming support.
  • Loading branch information
dogmaphobic authored Jun 6, 2017
2 parents fb5e524 + e0b57ec commit 6e980ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/VideoStreaming/VideoReceiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

QGC_LOGGING_CATEGORY(VideoReceiverLog, "VideoReceiverLog")

#if defined(QGC_GST_STREAMING)

static const char* kVideoExtensions[] =
{
"mkv",
Expand All @@ -43,6 +45,9 @@ static const char* kVideoMuxes[] =

#define NUM_MUXES (sizeof(kVideoMuxes) / sizeof(char*))

#endif


VideoReceiver::VideoReceiver(QObject* parent)
: QObject(parent)
#if defined(QGC_GST_STREAMING)
Expand Down Expand Up @@ -461,6 +466,7 @@ gboolean VideoReceiver::_onBusMessage(GstBus* bus, GstMessage* msg, gpointer dat
}
#endif

#if defined(QGC_GST_STREAMING)
void VideoReceiver::_cleanupOldVideos()
{
QString savePath = qgcApp()->toolbox()->settingsManager()->videoSettings()->videoSavePath()->rawValue().toString();
Expand Down Expand Up @@ -493,6 +499,7 @@ void VideoReceiver::_cleanupOldVideos()
}
}
}
#endif

// When we finish our pipeline will look like this:
//
Expand Down

0 comments on commit 6e980ad

Please sign in to comment.