Example #1
0
// 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))
}
Example #2
0
// 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)
}
Example #3
0
func (e *Element) SetState(state State) StateChangeReturn {
	return StateChangeReturn(C.gst_element_set_state(e.g(), C.GstState(state)))
}