gstreamer/gst
Guillaume Desmottes 36b7e5890f videorate: stop copying buffers in drop-only mode
gst_video_rate_flush_prev() ensures that the pushed buffer is writable
by calling gst_buffer_make_writable() on videorate->prevbuf.

In drop-only mode we always push buffers directly when they are received
from GstBaseTransform (gst_video_rate_transform_ip()) and do not keep them
around. GstBaseTransform already ensures that those buffers are
writable so there is no need to do it twice.

This change saves us from copying buffers in drop-only mode as we no longer
calls gst_buffer_make_writable() with a buffer having a refcount of 2
(one ref owned by GstBaseTransform and one in videorate->prevbuf).

https://bugzilla.gnome.org/show_bug.cgi?id=780767
2017-05-20 16:35:53 +02:00
..
adder Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
app Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
audioconvert Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
audiorate Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
audioresample Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
audiotestsrc Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
encoding Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
gio Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
pbtypes Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
playback urisourcebin: Unref query with gst_query_unref() 2017-05-18 11:03:07 +03:00
rawparse Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
subparse Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
tcp Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
typefind Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
videoconvert Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
videorate videorate: stop copying buffers in drop-only mode 2017-05-20 16:35:53 +02:00
videoscale Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
videotestsrc Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
volume Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
Makefile.am pbtypes: Add a stub plugin that owns the plugins-base dynamic types 2016-11-02 11:24:11 +11:00
meson.build rawparse: Move to gst-plugins-base 2017-02-25 14:48:40 +02:00