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
@ -629,7 +629,6 @@ gst_base_text_overlay_init (GstBaseTextOverlay * overlay,
|
||||
if (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_DEBUG_FUNCPTR (gst_base_text_overlay_text_event));
|
||||
|
Loading…
x
Reference in New Issue
Block a user