fix SEGV when connecting chains during an iteration
fix SEGV when connecting chains during an iteration

Original commit message from CVS:
fix SEGV when connecting chains during an iteration

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