[cheese/wip/disable-debug] Handle Gstreamer debugging being disabled
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/disable-debug] Handle Gstreamer debugging being disabled
- Date: Thu, 2 May 2019 06:24:55 +0000 (UTC)
commit 812240adee5e7016b9dda1fd8622fd95b57c421e
Author: David King <amigadave amigadave com>
Date: Thu May 2 07:22:15 2019 +0100
Handle Gstreamer debugging being disabled
https://gitlab.gnome.org/GNOME/cheese/issues/27
libcheese/cheese-camera-device-monitor.c | 2 ++
libcheese/cheese-camera-device.c | 2 ++
libcheese/cheese-camera.c | 2 ++
3 files changed, 6 insertions(+)
---
diff --git a/libcheese/cheese-camera-device-monitor.c b/libcheese/cheese-camera-device-monitor.c
index 5b4b43b5..19f4ff0b 100644
--- a/libcheese/cheese-camera-device-monitor.c
+++ b/libcheese/cheese-camera-device-monitor.c
@@ -240,10 +240,12 @@ cheese_camera_device_monitor_class_init (CheeseCameraDeviceMonitorClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+#ifndef GST_DISABLE_GST_DEBUG
if (cheese_device_monitor_cat == NULL)
GST_DEBUG_CATEGORY_INIT (cheese_device_monitor_cat,
"cheese-device-monitor",
0, "Cheese Camera Device Monitor");
+#endif
object_class->finalize = cheese_camera_device_monitor_finalize;
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index e994c5f5..942fa468 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -630,10 +630,12 @@ cheese_camera_device_class_init (CheeseCameraDeviceClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+#ifndef GST_DISABLE_GST_DEBUG
if (cheese_camera_device_cat == NULL)
GST_DEBUG_CATEGORY_INIT (cheese_camera_device_cat,
"cheese-camera-device",
0, "Cheese Camera Device");
+#endif
object_class->finalize = cheese_camera_device_finalize;
object_class->get_property = cheese_camera_device_get_property;
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 7b18dea5..7aa38066 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1337,10 +1337,12 @@ cheese_camera_class_init (CheeseCameraClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+#ifndef GST_DISABLE_GST_DEBUG
if (cheese_camera_cat == NULL)
GST_DEBUG_CATEGORY_INIT (cheese_camera_cat,
"cheese-camera",
0, "Cheese Camera");
+#endif
object_class->finalize = cheese_camera_finalize;
object_class->get_property = cheese_camera_get_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]