mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
textoverlay: fix text buffer leak
Make sure to always unref the input text buffer. Reported by bcxa.sz@gmail.com. https://bugzilla.gnome.org/show_bug.cgi?id=657049
This commit is contained in:
parent
54c15acd11
commit
7d3858a14d
1 changed files with 2 additions and 1 deletions
|
@ -2422,7 +2422,7 @@ gst_text_overlay_text_chain (GstPad * pad, GstBuffer * buffer)
|
|||
gst_segment_set_last_stop (&overlay->text_segment, GST_FORMAT_TIME,
|
||||
clip_start);
|
||||
|
||||
overlay->text_buffer = buffer;
|
||||
overlay->text_buffer = gst_buffer_ref (buffer);
|
||||
/* That's a new text buffer we need to render */
|
||||
overlay->need_render = TRUE;
|
||||
|
||||
|
@ -2434,6 +2434,7 @@ gst_text_overlay_text_chain (GstPad * pad, GstBuffer * buffer)
|
|||
|
||||
beach:
|
||||
|
||||
gst_buffer_unref (buffer);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue