queue2: cleanups
queue2: cleanups

Add a macro to get the max size of the queue in bytes, which depends on the
max_level.bytes and the ring_buffer_max_size.
Some cleanups.

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