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
@ -706,8 +706,8 @@ gst_image_freeze_src_loop (GstPad * pad)
|
|||||||
g_mutex_unlock (&self->lock);
|
g_mutex_unlock (&self->lock);
|
||||||
goto pause_task;
|
goto pause_task;
|
||||||
}
|
}
|
||||||
buffer = gst_buffer_ref (self->buffer);
|
buffer = gst_buffer_copy (self->buffer);
|
||||||
buffer = gst_buffer_make_writable (buffer);
|
|
||||||
g_mutex_unlock (&self->lock);
|
g_mutex_unlock (&self->lock);
|
||||||
|
|
||||||
if (self->need_segment) {
|
if (self->need_segment) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user