summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/deinterlace/gstdeinterlace.c2
-rw-r--r--gst/videocrop/gstvideocrop.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index 0b178492..df797a84 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -229,7 +229,7 @@ gst_deinterlace_init (GstDeInterlace * filter)
static void
gst_deinterlace_chain (GstPad * pad, GstData * _data)
{
- GstBuffer *buf = GST_BUFFER (_data);
+ GstBuffer *buf = gst_buffer_copy_on_write (GST_BUFFER (_data));
GstDeInterlace *filter;
gint y0, y1, y2, y3;
guchar *psrc1, *psrc2, *psrc3, *pdst1, *yuvptr, *src;
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index 81ca4a62..47a2def8 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -523,7 +523,8 @@ gst_video_crop_chain (GstPad * pad, GstData * _data)
outbuf = gst_pad_alloc_buffer (video_crop->srcpad, GST_BUFFER_OFFSET (buffer),
GST_VIDEO_I420_SIZE (new_width, new_height));
- GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buffer);
+
+ gst_buffer_stamp (outbuf, buffer);
gst_video_crop_i420 (video_crop, buffer, outbuf);
gst_buffer_unref (buffer);