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:
Vineeth T M 2014-09-02 17:22:07 +05:30 committed by Thiago Santos
parent 884f81ba28
commit 6ff397eccc

View file

@ -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) {