diff options
author | Yuqing Zhu <b54851@freescale.com> | 2015-08-10 11:41:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-01 21:19:35 +0100 |
commit | bdf4d19dc39d8ee860201ca68e30ebf203016a41 (patch) | |
tree | 1aa3f60929ea44ef3b8f8fe130193f3c4e6ba00a /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch | |
parent | 29ef78c85ad669b3971bf45674b0edff07fa1219 (diff) | |
download | poky-bdf4d19dc39d8ee860201ca68e30ebf203016a41.tar.gz |
gstreamer1.0-plugins-base: Fix output buffer can't writable after frame_map() issue
-Add GST_VIDEO_FRAME_MAP_FLAG_NO_REF
This makes sure that the buffer is not reffed another time when
storing it in the GstVideoFrame, keeping it writable if it was writable.
-Use new GST_VIDEO_FRAME_MAP_FLAG_NO_REF to replace the old one because it's kind of ugly.
-Don't ref buffers twice when mapping
(From OE-Core master rev: a618f60675dbcc6568d6b9bdee015456cef78a77)
(From OE-Core rev: b75f09af7c4bfa023299c4f82bd6c3f781b93354)
Signed-off-by: Yuqing Zhu <b54851@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch new file mode 100644 index 0000000000..3db4724fe6 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-video-frame-Don-t-ref-buffers-twice-when-mapping.patch | |||
@@ -0,0 +1,26 @@ | |||
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 | |||