fix gst element cleaninng issue in segment