mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
hlssink2: Initialize debug category to prevent an assert with fatal-warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2288>
This commit is contained in:
parent
fed06df5f6
commit
0b551382c4
1 changed files with 4 additions and 1 deletions
|
@ -98,8 +98,11 @@ static GstStaticPadTemplate audio_template = GST_STATIC_PAD_TEMPLATE ("audio",
|
||||||
|
|
||||||
#define gst_hls_sink2_parent_class parent_class
|
#define gst_hls_sink2_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstHlsSink2, gst_hls_sink2, GST_TYPE_BIN);
|
G_DEFINE_TYPE (GstHlsSink2, gst_hls_sink2, GST_TYPE_BIN);
|
||||||
|
#define _do_init \
|
||||||
|
hls_element_init (plugin); \
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_hls_sink2_debug, "hlssink2", 0, "HlsSink2");
|
||||||
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (hlssink2, "hlssink2", GST_RANK_NONE,
|
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (hlssink2, "hlssink2", GST_RANK_NONE,
|
||||||
GST_TYPE_HLS_SINK2, hls_element_init (plugin));
|
GST_TYPE_HLS_SINK2, _do_init);
|
||||||
|
|
||||||
static void gst_hls_sink2_set_property (GObject * object, guint prop_id,
|
static void gst_hls_sink2_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * spec);
|
const GValue * value, GParamSpec * spec);
|
||||||
|
|
Loading…
Reference in a new issue