func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn) { ret = StateChangeReturn(C.gst_element_get_state( e.g(), state.g(), pending.g(), C.GstClockTime(timeout_ns), )) return }
// GetState() is a wrapper around gst_element_get_state(). func (v *Element) GetState(timeout uint64) (state, pending State, change StateChangeReturn) { var cstate, cpending C.GstState c := C.gst_element_get_state(v.native(), &cstate, &cpending, C.GstClockTime(timeout)) return State(cstate), State(cpending), StateChangeReturn(c) }