basetransform: Handle downstream giving a buffer with new caps but invalid size
basetransform: Handle downstream giving a buffer with new caps but invalid size

This can happen for example when downstream proposed new caps, later proposed
the previous caps again which in turn enables passthrough mode in upstream
elements and the wrong-sized buffer appears in an element where the caps
change never happened. Simply allocate a new buffer in this case.

See bug #635461.

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