diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-25 17:19:15 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-26 11:59:16 +0200 |
commit | 5601f1925327f0f894ca706d7a7380231581ba3c (patch) | |
tree | e0ee423e6ba1de2e62820ed6223dad89e3561636 | |
parent | 0ac0f4fadec79f5945608d911bb326f42baae3a7 (diff) | |
download | gstreamer-plugins-base-5601f1925327f0f894ca706d7a7380231581ba3c.tar.gz |
videoencoder: clip input buffers to current input segment
... rather than to output segment, which will only be set
to current input segment if some output is produced
(coming from non-clipped input).
-rw-r--r-- | gst-libs/gst/video/gstvideoencoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideoencoder.c b/gst-libs/gst/video/gstvideoencoder.c index 27ebd1517..7ca6aab15 100644 --- a/gst-libs/gst/video/gstvideoencoder.c +++ b/gst-libs/gst/video/gstvideoencoder.c @@ -1105,7 +1105,7 @@ gst_video_encoder_chain (GstPad * pad, GstBuffer * buf) } /* Drop buffers outside of segment */ - if (!gst_segment_clip (&encoder->output_segment, + if (!gst_segment_clip (&encoder->input_segment, GST_FORMAT_TIME, start, stop, &cstart, &cstop)) { GST_DEBUG_OBJECT (encoder, "clipping to segment dropped frame"); gst_buffer_unref (buf); |