x264enc, rdtmanager: fix compilation with debugging disabled
This commit is contained in:
parent
b4cf5714a7
commit
0e285b3d29
@ -400,6 +400,7 @@ void
|
|||||||
gst_x264_enc_log_callback (gpointer private, gint level, const char *format,
|
gst_x264_enc_log_callback (gpointer private, gint level, const char *format,
|
||||||
va_list args)
|
va_list args)
|
||||||
{
|
{
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GstDebugLevel gst_level;
|
GstDebugLevel gst_level;
|
||||||
GObject *object = (GObject *) private;
|
GObject *object = (GObject *) private;
|
||||||
|
|
||||||
@ -424,6 +425,7 @@ gst_x264_enc_log_callback (gpointer private, gint level, const char *format,
|
|||||||
|
|
||||||
gst_debug_log_valist (x264_enc_debug, gst_level, "", "", 0, object, format,
|
gst_debug_log_valist (x264_enc_debug, gst_level, "", "", 0, object, format,
|
||||||
args);
|
args);
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the new element
|
/* initialize the new element
|
||||||
@ -488,7 +490,7 @@ gst_x264_enc_init (GstX264Enc * encoder, GstX264EncClass * klass)
|
|||||||
x264_param_default (&encoder->x264param);
|
x264_param_default (&encoder->x264param);
|
||||||
|
|
||||||
/* log callback setup; part of parameters */
|
/* 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.p_log_private = encoder;
|
||||||
encoder->x264param.i_log_level = X264_LOG_DEBUG;
|
encoder->x264param.i_log_level = X264_LOG_DEBUG;
|
||||||
|
|
||||||
|
@ -874,9 +874,8 @@ do_eos:
|
|||||||
}
|
}
|
||||||
pause:
|
pause:
|
||||||
{
|
{
|
||||||
const gchar *reason = gst_flow_get_name (result);
|
GST_DEBUG_OBJECT (rdtmanager, "pausing task, reason %s",
|
||||||
|
gst_flow_get_name (result));
|
||||||
GST_DEBUG_OBJECT (rdtmanager, "pausing task, reason %s", reason);
|
|
||||||
|
|
||||||
JBUF_LOCK (session);
|
JBUF_LOCK (session);
|
||||||
/* store result */
|
/* store result */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user