mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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.
This commit is contained in:
parent
de7e1cb6dd
commit
db90f6e68d
1 changed files with 3 additions and 3 deletions
|
@ -118,9 +118,6 @@ gst_rtp_h264_depay_class_init (GstRtpH264DepayClass * klass)
|
||||||
gstrtpbasedepayload_class->process = gst_rtp_h264_depay_process;
|
gstrtpbasedepayload_class->process = gst_rtp_h264_depay_process;
|
||||||
gstrtpbasedepayload_class->set_caps = gst_rtp_h264_depay_setcaps;
|
gstrtpbasedepayload_class->set_caps = gst_rtp_h264_depay_setcaps;
|
||||||
gstrtpbasedepayload_class->handle_event = gst_rtp_h264_depay_handle_event;
|
gstrtpbasedepayload_class->handle_event = gst_rtp_h264_depay_handle_event;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (rtph264depay_debug, "rtph264depay", 0,
|
|
||||||
"H264 Video RTP Depayloader");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1157,6 +1154,9 @@ gst_rtp_h264_depay_change_state (GstElement * element,
|
||||||
gboolean
|
gboolean
|
||||||
gst_rtp_h264_depay_plugin_init (GstPlugin * plugin)
|
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",
|
return gst_element_register (plugin, "rtph264depay",
|
||||||
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY);
|
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue