mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
aggregator: don't leak gap buffer when out of segment
This commit is contained in:
parent
619dfc91bb
commit
c6691abba1
1 changed files with 1 additions and 1 deletions
|
@ -1471,7 +1471,6 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||
GstBuffer *gapbuf;
|
||||
|
||||
gst_event_parse_gap (event, &pts, &duration);
|
||||
gapbuf = gst_buffer_new ();
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (duration))
|
||||
endpts = pts + duration;
|
||||
|
@ -1493,6 +1492,7 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||
else
|
||||
duration = GST_CLOCK_TIME_NONE;
|
||||
|
||||
gapbuf = gst_buffer_new ();
|
||||
GST_BUFFER_PTS (gapbuf) = pts;
|
||||
GST_BUFFER_DURATION (gapbuf) = duration;
|
||||
GST_BUFFER_FLAG_SET (gapbuf, GST_BUFFER_FLAG_GAP);
|
||||
|
|
Loading…
Reference in a new issue