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) }
func (b *Bus) TimedPopFiltered(timeout uint64, types MessageType) *Message { return (*Message)(C.gst_bus_timed_pop_filtered(b.g(), C.GstClockTime(timeout), C.GstMessageType(types))) }
func (b *Bus) Poll(events MessageType, timeout int64) *Message { return (*Message)(C.gst_bus_poll(b.g(), C.GstMessageType(events), C.GstClockTime(timeout))) }
func (b *Bus) TimedPop(timeout uint64) *Message { return (*Message)(C.gst_bus_timed_pop(b.g(), C.GstClockTime(timeout))) }