segment: cast to right type
segment: cast to right type

See #653137

ensonic/gstreamer,cablelabs/gstreamer,justinjoy/gstreamer,lubosz/gstreamer,shelsonjava/gstreamer,justinjoy/gstreamer,centricular/gstreamer,shelsonjava/gstreamer,krieger-od/gstreamer,krichter722/gstreamer,surround-io/gstreamer,jpxiong/gstreamer,surround-io/gstreamer,jpxiong/gstreamer,cfoch/gstreamer,krichter722/gstreamer,jpakkane/gstreamer,cablelabs/gstreamer,ensonic/gstreamer,Lachann/gstreamer,jpakkane/gstreamer,surround-io/gstreamer,mparis/gstreamer,krieger-od/gstreamer,krichter722/gstreamer,cfoch/gstreamer,mparis/gstreamer,justinjoy/gstreamer,collects/gstreamer,jpakkane/gstreamer,StreamUtils/gstreamer,Lachann/gstreamer,krichter722/gstreamer,shelsonjava/gstreamer,Lachann/gstreamer,justinjoy/gstreamer,centricular/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,krieger-od/gstreamer,StreamUtils/gstreamer,surround-io/gstreamer,lubosz/gstreamer,collects/gstreamer,shelsonjava/gstreamer,collects/gstreamer,mparis/gstreamer,centricular/gstreamer,StreamUtils/gstreamer,centricular/gstreamer,cablelabs/gstreamer,cablelabs/gstreamer,jpakkane/gstreamer,jpxiong/gstreamer,lovebug356/gstreamer,ensonic/gstreamer,lovebug356/gstreamer,centricular/gstreamer,jpakkane/gstreamer,cfoch/gstreamer,lubosz/gstreamer,krichter722/gstreamer,lubosz/gstreamer,ensonic/gstreamer,Lachann/gstreamer,mparis/gstreamer,Lachann/gstreamer,lovebug356/gstreamer,StreamUtils/gstreamer,lovebug356/gstreamer,cfoch/gstreamer,ensonic/gstreamer,krieger-od/gstreamer,shelsonjava/gstreamer,surround-io/gstreamer,collects/gstreamer,jpxiong/gstreamer,cablelabs/gstreamer,mparis/gstreamer,lubosz/gstreamer,collects/gstreamer,StreamUtils/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,lovebug356/gstreamer