collectpads: don't keep buffers reffed longer than needed
collectpads: don't keep buffers reffed longer than needed

Make sure we take ownership of the buffer early without increasing its refcount
when we go in the collect function. This reduces the amount of copies needed in
order to make the buffer writable in most cases.

Distrotech/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,ensonic/gstreamer,mrchapp/gstreamer,cfoch/gstreamer,lovebug356/gstreamer,collects/gstreamer,Lachann/gstreamer,ylatuya/gstreamer,centricular/gstreamer,jpxiong/gstreamer,drothlis/gstreamer,lubosz/gstreamer,magcius/gstreamer,Lachann/gstreamer,Lachann/gstreamer,ahmedammar/platform_external_gst_gstreamer,StreamUtils/gstreamer,ylatuya/gstreamer,ahmedammar/platform_external_gst_gstreamer,drothlis/gstreamer,jpxiong/gstreamer,lubosz/gstreamer,ensonic/gstreamer,krieger-od/gstreamer,cfoch/gstreamer,drothlis/gstreamer,jpxiong/gstreamer,jpakkane/gstreamer,centricular/gstreamer,magcius/gstreamer,lubosz/gstreamer,surround-io/gstreamer,ylatuya/gstreamer,shelsonjava/gstreamer,cablelabs/gstreamer,cablelabs/gstreamer,ahmedammar/platform_external_gst_gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,mrchapp/gstreamer,ylatuya/gstreamer,mrchapp/gstreamer,shelsonjava/gstreamer,lovebug356/gstreamer,lovebug356/gstreamer,jpxiong/gstreamer,mparis/gstreamer,mparis/gstreamer,mparis/gstreamer,jpakkane/gstreamer,jpakkane/gstreamer,lubosz/gstreamer,cfoch/gstreamer,cablelabs/gstreamer,shelsonjava/gstreamer,ensonic/gstreamer,collects/gstreamer,lovebug356/gstreamer,cfoch/gstreamer,collects/gstreamer,krieger-od/gstreamer,krichter722/gstreamer,StreamUtils/gstreamer,surround-io/gstreamer,centricular/gstreamer,drothlis/gstreamer,mparis/gstreamer,StreamUtils/gstreamer,mrchapp/gstreamer,Distrotech/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,Distrotech/gstreamer,krieger-od/gstreamer,lubosz/gstreamer,justinjoy/gstreamer,mparis/gstreamer,jpakkane/gstreamer,magcius/gstreamer,cablelabs/gstreamer,ahmedammar/platform_external_gst_gstreamer,Distrotech/gstreamer,krichter722/gstreamer,ylatuya/gstreamer,cfoch/gstreamer,krieger-od/gstreamer,magcius/gstreamer,centricular/gstreamer,krichter722/gstreamer,mrchapp/gstreamer,jpakkane/gstreamer,collects/gstreamer,centricular/gstreamer,drothlis/gstreamer,krichter722/gstreamer,StreamUtils/gstreamer,cablelabs/gstreamer,surround-io/gstreamer,lovebug356/gstreamer,jpxiong/gstreamer,ensonic/gstreamer,krichter722/gstreamer,justinjoy/gstreamer,collects/gstreamer,krieger-od/gstreamer,Lachann/gstreamer,magcius/gstreamer,ensonic/gstreamer,justinjoy/gstreamer,ahmedammar/platform_external_gst_gstreamer,Lachann/gstreamer,Distrotech/gstreamer