Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 269f642c45d85cfd630ed490478e6bd6b71a767f Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> |
| 3 | Date: Tue, 16 Sep 2014 01:07:18 +0300 |
| 4 | Subject: [PATCH] video-frame: Don't ref buffers twice when mapping |
| 5 | |
| 6 | Upstream-Status: Backport [1.5.1] |
| 7 | --- |
| 8 | gst-libs/gst/video/video-frame.c | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/gst-libs/gst/video/video-frame.c b/gst-libs/gst/video/video-frame.c |
| 12 | index 01f23c0..8a9ae96 100644 |
| 13 | --- a/gst-libs/gst/video/video-frame.c |
| 14 | +++ b/gst-libs/gst/video/video-frame.c |
| 15 | @@ -105,7 +105,7 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info, |
| 16 | frame->data[i] = frame->map[0].data + info->offset[i]; |
| 17 | } |
| 18 | } |
| 19 | - frame->buffer = gst_buffer_ref (buffer); |
| 20 | + frame->buffer = buffer; |
| 21 | if ((flags & GST_VIDEO_FRAME_MAP_FLAG_NO_REF) == 0) |
| 22 | gst_buffer_ref (frame->buffer); |
| 23 | |
| 24 | -- |
| 25 | 1.7.9.5 |
| 26 | |