gst_x264_enc_log_callback (gpointer private, gint level, const char *format,
va_list args)
{
+#ifndef GST_DISABLE_GST_DEBUG
GstDebugLevel gst_level;
GObject *object = (GObject *) private;
gst_debug_log_valist (x264_enc_debug, gst_level, "", "", 0, object, format,
args);
+#endif /* GST_DISABLE_GST_DEBUG */
}
/* initialize the new element
x264_param_default (&encoder->x264param);
/* log callback setup; part of parameters */
- encoder->x264param.pf_log = GST_DEBUG_FUNCPTR (gst_x264_enc_log_callback);
+ encoder->x264param.pf_log = gst_x264_enc_log_callback;
encoder->x264param.p_log_private = encoder;
encoder->x264param.i_log_level = X264_LOG_DEBUG;
}
pause:
{
- const gchar *reason = gst_flow_get_name (result);
-
- GST_DEBUG_OBJECT (rdtmanager, "pausing task, reason %s", reason);
+ GST_DEBUG_OBJECT (rdtmanager, "pausing task, reason %s",
+ gst_flow_get_name (result));
JBUF_LOCK (session);
/* store result */