gstinfo: Add missing log context stub functions when debugging disabled
When GST_DISABLE_GST_DEBUG is defined, the log context functions were missing their stub implementations, causing link errors. Add the missing stub functions to the disabled debug section. Also add (nullable) annotation to gst_log_context_get_category since it can return NULL when debugging is disabled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9122>
This commit is contained in:
parent
a0ec9a4eea
commit
0b12b883c9
@ -23824,7 +23824,7 @@ GST_LOG_CONTEXT_STATIC_DEFINE(custom_cat_ctx, GST_LOG_CONTEXT_FLAG_NONE,
|
||||
<method name="get_category" c:identifier="gst_log_context_get_category" version="1.28" introspectable="0">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstinfo.c">Get the #GstDebugCategory associated with this log context.</doc>
|
||||
<source-position filename="../subprojects/gstreamer/gst/gstinfo.h"/>
|
||||
<return-value>
|
||||
<return-value nullable="1">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstinfo.c">the #GstDebugCategory to which the context is bound</doc>
|
||||
<type name="DebugCategory" c:type="GstDebugCategory*"/>
|
||||
</return-value>
|
||||
|
@ -2887,7 +2887,7 @@ gst_log_context_builder_build (GstLogContextBuilder * builder)
|
||||
*
|
||||
* Get the #GstDebugCategory associated with this log context.
|
||||
*
|
||||
* Returns: the #GstDebugCategory to which the context is bound
|
||||
* Returns: (nullable): the #GstDebugCategory to which the context is bound
|
||||
*
|
||||
* Since: 1.28
|
||||
*/
|
||||
@ -3487,6 +3487,51 @@ _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file,
|
||||
const guint8 * data, guint length)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_log_context_free (GstLogContext * ctx)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_log_context_reset (GstLogContext * ctx)
|
||||
{
|
||||
}
|
||||
|
||||
GstDebugCategory *
|
||||
gst_log_context_get_category (GstLogContext * context)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
gst_debug_log_with_context (GstLogContext * ctx, GstDebugLevel level,
|
||||
const gchar * file, const gchar * function, gint line, GObject * object,
|
||||
const gchar * format, ...)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_debug_log_with_context_valist (GstLogContext * ctx, GstDebugLevel level,
|
||||
const gchar * file, const gchar * function, gint line, GObject * object,
|
||||
const gchar * format, va_list args)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_debug_log_literal_with_context (GstLogContext * ctx, GstDebugLevel level,
|
||||
const gchar * file, const gchar * function, gint line, GObject * object,
|
||||
const gchar * message)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gst_debug_log_id_with_context (GstLogContext * ctx, GstDebugLevel level,
|
||||
const gchar * file, const gchar * function, gint line, const gchar * id,
|
||||
const gchar * format, ...)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* GST_REMOVE_DISABLED */
|
||||
#endif /* GST_DISABLE_GST_DEBUG */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user