x264enc: Add the func/line info to the log callback

It looks awkward when it's missing. At least point us at the callback
function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/85>
This commit is contained in:
Jan Alexander Steffens (heftig) 2021-09-21 14:57:29 +02:00
parent de465be3e4
commit de87e0d381

View file

@ -1255,8 +1255,11 @@ gst_x264_enc_log_callback (gpointer private, gint level, const char *format,
break;
}
gst_debug_log_valist (x264_enc_debug, gst_level, "", "", 0, object, format,
args);
if (G_LIKELY (gst_level > _gst_debug_min))
return;
gst_debug_log_valist (GST_CAT_DEFAULT, gst_level, __FILE__, GST_FUNCTION,
__LINE__, object, format, args);
#endif /* GST_DISABLE_GST_DEBUG */
}