// GetName() is a wrapper around gst_element_state_get_name(). func (s *State) GetName() string { c := C.gst_element_state_get_name(C.GstState(*s)) return C.GoString((*C.char)(c)) }
// SetState() is a wrapper around gst_element_set_state(). func (v *Element) SetState(state State) StateChangeReturn { c := C.gst_element_set_state(v.native(), C.GstState(state)) return StateChangeReturn(c) }
func (e *Element) SetState(state State) StateChangeReturn { return StateChangeReturn(C.gst_element_set_state(e.g(), C.GstState(state))) }