mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
imagefreeze: replace with gst_buffer_copy
gst_buffer_ref and gst_buffer_writable is being used to create a writable copy of source buffer. replacing the same with gst_buffer_copy as the functionality is same. https://bugzilla.gnome.org/show_bug.cgi?id=735880
This commit is contained in:
parent
884f81ba28
commit
6ff397eccc
1 changed files with 2 additions and 2 deletions
|
@ -706,8 +706,8 @@ gst_image_freeze_src_loop (GstPad * pad)
|
|||
g_mutex_unlock (&self->lock);
|
||||
goto pause_task;
|
||||
}
|
||||
buffer = gst_buffer_ref (self->buffer);
|
||||
buffer = gst_buffer_make_writable (buffer);
|
||||
buffer = gst_buffer_copy (self->buffer);
|
||||
|
||||
g_mutex_unlock (&self->lock);
|
||||
|
||||
if (self->need_segment) {
|
||||
|
|
Loading…
Reference in a new issue