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:
aa89184
)
videosegmentclip: Don't leak buffers after segment
author
David Schleef
<ds@schleef.org>
Sat, 2 Mar 2013 00:52:41 +0000
(16:52 -0800)
committer
David Schleef
<ds@schleef.org>
Fri, 15 Mar 2013 07:16:16 +0000
(
00:16
-0700)
gst/segmentclip/gstvideosegmentclip.c
patch
|
blob
|
history
diff --git
a/gst/segmentclip/gstvideosegmentclip.c
b/gst/segmentclip/gstvideosegmentclip.c
index
faf6b36
..
7430a65
100644
(file)
--- a/
gst/segmentclip/gstvideosegmentclip.c
+++ b/
gst/segmentclip/gstvideosegmentclip.c
@@
-143,6
+143,7
@@
gst_video_segment_clip_clip_buffer (GstSegmentClip * base, GstBuffer * buffer,
} else {
GST_DEBUG_OBJECT (self, "Buffer outside the configured segment");
+ gst_buffer_unref (buffer);
if (segment->rate >= 0) {
if (segment->stop != -1 && timestamp >= segment->stop)
return GST_FLOW_EOS;
@@
-150,7
+151,6
@@
gst_video_segment_clip_clip_buffer (GstSegmentClip * base, GstBuffer * buffer,
if (segment->start != -1 && timestamp + duration <= segment->start)
return GST_FLOW_EOS;
}
- gst_buffer_unref (buffer);
}