mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +00:00
pango: fix bad unref and crashes with multiple text overlays
gst_element_class_get_pad_template() does not return a ref, so we mustn't unref the template returned. Fixes crashes when switching back and forth between different types of subtitle streams.
This commit is contained in:
parent
bec14e2b05
commit
96faac2891
1 changed files with 0 additions and 1 deletions
|
@ -629,7 +629,6 @@ gst_base_text_overlay_init (GstBaseTextOverlay * overlay,
|
||||||
if (template) {
|
if (template) {
|
||||||
/* text sink */
|
/* text sink */
|
||||||
overlay->text_sinkpad = gst_pad_new_from_template (template, "text_sink");
|
overlay->text_sinkpad = gst_pad_new_from_template (template, "text_sink");
|
||||||
gst_object_unref (template);
|
|
||||||
|
|
||||||
gst_pad_set_event_function (overlay->text_sinkpad,
|
gst_pad_set_event_function (overlay->text_sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_base_text_overlay_text_event));
|
GST_DEBUG_FUNCPTR (gst_base_text_overlay_text_event));
|
||||||
|
|
Loading…
Reference in a new issue