mediafoundation: Fix build with GST_DISABLE_GST_DEBUG

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5585>
This commit is contained in:
Seungha Yang 2023-11-02 00:30:19 +09:00 committed by GStreamer Marge Bot
parent c3cef6e923
commit 8009f5275a

View file

@ -60,8 +60,13 @@ gboolean _gst_mf_result (HRESULT hr,
const gchar * function,
gint line);
#ifndef GST_DISABLE_GST_DEBUG
#define gst_mf_result(result) \
_gst_mf_result (result, GST_CAT_DEFAULT, __FILE__, GST_FUNCTION, __LINE__)
#else
#define gst_mf_result(result) \
_gst_mf_result (result, NULL, __FILE__, GST_FUNCTION, __LINE__)
#endif
void _gst_mf_dump_attributes (IMFAttributes * attr,
const gchar * msg,
@ -71,8 +76,13 @@ void _gst_mf_dump_attributes (IMFAttributes * attr,
const gchar * function,
gint line);
#ifndef GST_DISABLE_GST_DEBUG
#define gst_mf_dump_attributes(attr,msg,level) \
_gst_mf_dump_attributes (attr, msg, level, GST_CAT_DEFAULT, __FILE__, GST_FUNCTION, __LINE__)
#else
#define gst_mf_dump_attributes(attr,msg,level) \
do {} while (0)
#endif
G_END_DECLS