h264depay: init debug category early
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 15:10:31 +0000 (17:10 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 16 Aug 2013 15:12:19 +0000 (17:12 +0200)
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

index e654eba..91432b5 100644 (file)
@@ -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);
 }