1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00

sip-pipeline: Only use gstreamer debugging if option is set

Fixes build issues when gstreamer has not been compiled with debugging
enabled.

Fixes: #533
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-12-18 11:19:21 +01:00
parent 1cbffebdf6
commit c5025d4cc5

View file

@ -24,6 +24,8 @@
#define G_LOG_DOMAIN "CallsSipMediaPipeline" #define G_LOG_DOMAIN "CallsSipMediaPipeline"
#include "calls-config.h"
#include "calls-media-pipeline-enums.h" #include "calls-media-pipeline-enums.h"
#include "calls-sip-media-pipeline.h" #include "calls-sip-media-pipeline.h"
#include "calls-srtp-utils.h" #include "calls-srtp-utils.h"
@ -1140,6 +1142,7 @@ static void
dump_pipeline_graph_to_path (GstBin *bin, dump_pipeline_graph_to_path (GstBin *bin,
const char *full_path) const char *full_path)
{ {
#ifdef CALLS_GST_DEBUG
g_autoptr (GFile) file = NULL; g_autoptr (GFile) file = NULL;
char *dot_data; char *dot_data;
@ -1157,6 +1160,7 @@ dump_pipeline_graph_to_path (GstBin *bin,
NULL, NULL,
on_dump_file_created, on_dump_file_created,
dot_data); dot_data);
#endif
} }