Commit 614b39c9 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Use VideoReceiverLog category for video streaming stuff

parent 4fdc5f5f
This diff is collapsed.
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <QtQml> #include <QtQml>
#include <QDebug> #include <QDebug>
#include "VideoReceiver.h"
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
#include <gst/gst.h> #include <gst/gst.h>
...@@ -146,7 +148,7 @@ void initializeVideoStreaming(int &argc, char* argv[], int gstDebuglevel) ...@@ -146,7 +148,7 @@ void initializeVideoStreaming(int &argc, char* argv[], int gstDebuglevel)
GError* error = nullptr; GError* error = nullptr;
if (!gst_init_check(&argc, &argv, &error)) { if (!gst_init_check(&argc, &argv, &error)) {
qCritical() << "gst_init_check() failed: " << error->message; qCCritical(VideoReceiverLog) << "gst_init_check() failed: " << error->message;
g_error_free(error); g_error_free(error);
} }
...@@ -192,7 +194,7 @@ void initializeVideoStreaming(int &argc, char* argv[], int gstDebuglevel) ...@@ -192,7 +194,7 @@ void initializeVideoStreaming(int &argc, char* argv[], int gstDebuglevel)
gst_object_unref(sink); gst_object_unref(sink);
sink = nullptr; sink = nullptr;
} else { } else {
qCritical() << "unable to find qmlglsink - you need to build it yourself and add to GST_PLUGIN_PATH"; qCCritical(VideoReceiverLog) << "unable to find qmlglsink - you need to build it yourself and add to GST_PLUGIN_PATH";
} }
GST_PLUGIN_STATIC_REGISTER(qgc); GST_PLUGIN_STATIC_REGISTER(qgc);
......
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