diff --git a/subprojects/gst-plugins-bad/sys/wasapi2/gstwasapi2util.h b/subprojects/gst-plugins-bad/sys/wasapi2/gstwasapi2util.h index f3bb08fd31..73d935714d 100644 --- a/subprojects/gst-plugins-bad/sys/wasapi2/gstwasapi2util.h +++ b/subprojects/gst-plugins-bad/sys/wasapi2/gstwasapi2util.h @@ -49,8 +49,13 @@ gboolean _gst_wasapi2_result (HRESULT hr, const gchar * function, gint line); +#ifndef GST_DISABLE_GST_DEBUG #define gst_wasapi2_result(result) \ _gst_wasapi2_result (result, GST_CAT_DEFAULT, __FILE__, GST_FUNCTION, __LINE__) +#else +#define gst_wasapi2_result(result) \ + _gst_wasapi2_result (result, NULL, __FILE__, GST_FUNCTION, __LINE__) +#endif guint64 gst_wasapi2_util_waveformatex_to_channel_mask (WAVEFORMATEX * format, GstAudioChannelPosition ** out_position);