From a80726c8d718dbb76ea05af57c45dbb3f1e618c6 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 1 Mar 2013 16:52:41 -0800 Subject: [PATCH] videosegmentclip: Don't leak buffers after segment --- gst/segmentclip/gstvideosegmentclip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/segmentclip/gstvideosegmentclip.c b/gst/segmentclip/gstvideosegmentclip.c index faf6b36f8e..7430a65da1 100644 --- 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); }