From c5025d4cc503443ec679746c3a4dd0a2038193c2 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 18 Dec 2022 11:19:21 +0100 Subject: [PATCH] sip-pipeline: Only use gstreamer debugging if option is set Fixes build issues when gstreamer has not been compiled with debugging enabled. Fixes: #533 --- plugins/provider/sip/calls-sip-media-pipeline.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/provider/sip/calls-sip-media-pipeline.c b/plugins/provider/sip/calls-sip-media-pipeline.c index 8886af8..42a0f5c 100644 --- a/plugins/provider/sip/calls-sip-media-pipeline.c +++ b/plugins/provider/sip/calls-sip-media-pipeline.c @@ -24,6 +24,8 @@ #define G_LOG_DOMAIN "CallsSipMediaPipeline" +#include "calls-config.h" + #include "calls-media-pipeline-enums.h" #include "calls-sip-media-pipeline.h" #include "calls-srtp-utils.h" @@ -1140,6 +1142,7 @@ static void dump_pipeline_graph_to_path (GstBin *bin, const char *full_path) { + #ifdef CALLS_GST_DEBUG g_autoptr (GFile) file = NULL; char *dot_data; @@ -1157,6 +1160,7 @@ dump_pipeline_graph_to_path (GstBin *bin, NULL, on_dump_file_created, dot_data); + #endif }