projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619dfc9
)
aggregator: don't leak gap buffer when out of segment
author
Matthew Waters
<matthew@centricular.com>
Thu, 21 Mar 2019 07:55:16 +0000
(18:55 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Thu, 21 Mar 2019 08:18:46 +0000
(19:18 +1100)
libs/gst/base/gstaggregator.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstaggregator.c
b/libs/gst/base/gstaggregator.c
index
bc8c05f
..
0acd8a2
100644
(file)
--- a/
libs/gst/base/gstaggregator.c
+++ b/
libs/gst/base/gstaggregator.c
@@
-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);