mirror of
https://github.com/notedit/gst.git
synced 2025-10-30 11:06:18 +08:00
Add GstStateChangeReturn to Pipeline.SetState
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user