From db90f6e68d4553e239629a6d3a8ee69e2b706006 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 16 Aug 2013 17:10:31 +0200 Subject: [PATCH] h264depay: init debug category early Init the debug variable when we register the element because it is also used by the payloader element when it calls the add_sps_pps method. --- gst/rtp/gstrtph264depay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index e654eba285..91432b5725 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -118,9 +118,6 @@ gst_rtp_h264_depay_class_init (GstRtpH264DepayClass * klass) gstrtpbasedepayload_class->process = gst_rtp_h264_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_h264_depay_setcaps; gstrtpbasedepayload_class->handle_event = gst_rtp_h264_depay_handle_event; - - GST_DEBUG_CATEGORY_INIT (rtph264depay_debug, "rtph264depay", 0, - "H264 Video RTP Depayloader"); } static void @@ -1157,6 +1154,9 @@ gst_rtp_h264_depay_change_state (GstElement * element, gboolean gst_rtp_h264_depay_plugin_init (GstPlugin * plugin) { + GST_DEBUG_CATEGORY_INIT (rtph264depay_debug, "rtph264depay", 0, + "H264 Video RTP Depayloader"); + return gst_element_register (plugin, "rtph264depay", GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY); }