gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (openh264dec), TRUE);
}
+#ifndef GST_DISABLE_GST_DEBUG
static void
openh264_trace_cb (void *ctx, int level, const char *string)
{
gst_debug_log (GST_CAT_DEFAULT, lvl, "", "", 0, o, "%s", string);
}
+#endif
static gboolean
gst_openh264dec_start (GstVideoDecoder * decoder)
GstOpenh264Dec *openh264dec = GST_OPENH264DEC (decoder);
gint ret;
SDecodingParam dec_param = { 0 };
- int log_level;
- WelsTraceCallback log_cb;
if (openh264dec->decoder != NULL) {
openh264dec->decoder->Uninitialize ();
}
WelsCreateDecoder (&(openh264dec->decoder));
- log_level = WELS_LOG_WARNING;
- log_cb = openh264_trace_cb;
- openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_LEVEL, &log_level);
- openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK,
- (void *) &log_cb);
- openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK_CONTEXT,
- (void *) &decoder);
+#ifndef GST_DISABLE_GST_DEBUG
+ {
+ int log_level = WELS_LOG_WARNING;
+ WelsTraceCallback log_cb = openh264_trace_cb;
+
+ openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_LEVEL, &log_level);
+ openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK,
+ (void *) &log_cb);
+ openh264dec->decoder->SetOption (DECODER_OPTION_TRACE_CALLBACK_CONTEXT,
+ (void *) &decoder);
+ }
+#endif
dec_param.uiTargetDqLayer = 255;
dec_param.eEcActiveIdc = ERROR_CON_FRAME_COPY;