queue2; cleanups and fixes
queue2; cleanups and fixes

Make a macro for some frequent checks
Emit the removed signal in all cases when we remove something

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