Gst.Event.prototype.parse_segment

function parse_segment():void {
    // Gjs wrapper for gst_event_parse_segment()
}

Parses a segment event and stores the result in the given segment location. segment remains valid only until the event is freed. Don't modify the segment and make a copy if you want to modify it or store it for later use.