gst_buffer_pool_acquire_buffer() gives us a new owned buffer while
gst_buffer_replace() reffed it as well so we were one reference extra.
https://bugzilla.gnome.org/show_bug.cgi?id=746887
if (!gst_video_frame_map (&output_frame, info, buffer, GST_MAP_WRITE))
goto map_fail;
- gst_buffer_replace (&in_frame->output_buffer, buffer);
+ if (in_frame->output_buffer)
+ gst_buffer_unref (in_frame->output_buffer);
+ in_frame->output_buffer = buffer;
if (!gst_video_frame_copy (&output_frame, input_vframe))
goto copy_failed;