From: Sebastian Dröge Date: Fri, 7 Aug 2020 06:26:19 +0000 (+0300) Subject: sctp: fix build with GST_DISABLE_GST_DEBUG X-Git-Tag: 1.19.3~507^2~1475 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ef393d5ff62fe50948a9df1bed43742e25de2a6;p=platform%2Fupstream%2Fgstreamer.git sctp: fix build with GST_DISABLE_GST_DEBUG Part-of: --- diff --git a/ext/sctp/sctpassociation.c b/ext/sctp/sctpassociation.c index ed1f92b..dd98eb1 100644 --- a/ext/sctp/sctpassociation.c +++ b/ext/sctp/sctpassociation.c @@ -174,6 +174,7 @@ gst_sctp_association_class_init (GstSctpAssociationClass * klass) g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties); } +#if defined(SCTP_DEBUG) && !defined(GST_DISABLE_GST_DEBUG) #define USRSCTP_GST_DEBUG_LEVEL GST_LEVEL_DEBUG static void gst_usrsctp_debug (const gchar * format, ...) @@ -185,13 +186,18 @@ gst_usrsctp_debug (const gchar * format, ...) __FILE__, GST_FUNCTION, __LINE__, NULL, format, varargs); va_end (varargs); } +#endif static void gst_sctp_association_init (GstSctpAssociation * self) { /* No need to lock mutex here as long as the function is only called from gst_sctp_association_get */ if (number_of_associations == 0) { +#if defined(SCTP_DEBUG) && !defined(GST_DISABLE_GST_DEBUG) usrsctp_init (0, sctp_packet_out, gst_usrsctp_debug); +#else + usrsctp_init (0, sctp_packet_out, NULL); +#endif /* Explicit Congestion Notification */ usrsctp_sysctl_set_sctp_ecn_enable (0);