mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
flacdec: fix event leak
This commit is contained in:
parent
c626e90fda
commit
eb4afca554
1 changed files with 2 additions and 0 deletions
|
@ -1269,6 +1269,8 @@ gst_flac_dec_sink_event (GstPad * pad, GstEvent * event)
|
|||
/* prepare generic newsegment event, for some reason our metadata
|
||||
* callback where we usually set this up is not being called in
|
||||
* push mode */
|
||||
if (dec->start_segment)
|
||||
gst_event_unref (dec->start_segment);
|
||||
dec->start_segment = gst_event_new_new_segment (FALSE, 1.0,
|
||||
GST_FORMAT_TIME, 0, -1, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue