Add GstStateChangeReturn to Pipeline.SetState

This commit is contained in:
John M
2020-12-20 22:17:50 -05:00
parent 6000b39ba9
commit 03fcc28ea9
2 changed files with 12 additions and 2 deletions

View File

@@ -71,8 +71,9 @@ func PipelineNew(name string) (e *Pipeline, err error) {
return
}
func (p *Pipeline) SetState(state StateOptions) {
C.gst_element_set_state(p.GstElement, C.GstState(state))
func (p *Pipeline) SetState(state StateOptions) StateChangeReturn {
Cint := C.gst_element_set_state(p.GstElement, C.GstState(state))
return StateChangeReturn(Cint)
}
func (p *Pipeline) GetBus() (bus *Bus) {