mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
ttml: fix log init
The log system should be init before calling a log Fix regression after: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1112>
This commit is contained in:
parent
01fa95d34a
commit
2200a3dbcd
2 changed files with 4 additions and 4 deletions
|
@ -608,13 +608,13 @@ gst_element_ttmlparse_init (GstPlugin * plugin)
|
|||
|
||||
ttml_element_init (plugin);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (ttmlparse_debug, "ttmlparse", 0, "TTML parser");
|
||||
|
||||
/* We don't want this autoplugged by default yet for now */
|
||||
if (g_getenv ("GST_TTML_AUTOPLUG")) {
|
||||
GST_INFO_OBJECT (plugin, "Registering ttml elements with primary rank.");
|
||||
rank = GST_RANK_PRIMARY;
|
||||
}
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (ttmlparse_debug, "ttmlparse", 0, "TTML parser");
|
||||
|
||||
return gst_element_register (plugin, "ttmlparse", rank, GST_TYPE_TTML_PARSE);
|
||||
}
|
||||
|
|
|
@ -3071,14 +3071,14 @@ gst_element_ttmlrender_init (GstPlugin * plugin)
|
|||
|
||||
ttml_element_init (plugin);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (ttmlrender_debug, "ttmlrender", 0, "TTML renderer");
|
||||
|
||||
/* We don't want this autoplugged by default yet for now */
|
||||
if (g_getenv ("GST_TTML_AUTOPLUG")) {
|
||||
GST_INFO_OBJECT (plugin, "Registering ttml elements with primary rank.");
|
||||
rank = GST_RANK_PRIMARY;
|
||||
}
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (ttmlrender_debug, "ttmlrender", 0, "TTML renderer");
|
||||
|
||||
return gst_element_register (plugin, "ttmlrender", rank,
|
||||
GST_TYPE_TTML_RENDER);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue