mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 07:40:01 +00:00
video-frame: Don't ref buffers twice when mapping
This commit is contained in:
parent
2a35a881b0
commit
269f642c45
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info,
|
|||
frame->data[i] = frame->map[0].data + info->offset[i];
|
||||
}
|
||||
}
|
||||
frame->buffer = gst_buffer_ref (buffer);
|
||||
frame->buffer = buffer;
|
||||
if ((flags & GST_VIDEO_FRAME_MAP_FLAG_NO_REF) == 0)
|
||||
gst_buffer_ref (frame->buffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue