Skip to content

Commit 46f74cb

Browse files
authored
Merge pull request tinyzimmer#59 from go-gst/control_source_unset_all
add binding to unset all scheduled control source values
2 parents bebb75b + 9c148b4 commit 46f74cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gst/control_source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ func (cs *InterpolationControlSource) SetInterpolationMode(mode InterpolationMod
4343
func (cs *InterpolationControlSource) SetTimedValue(time ClockTime, value float64) bool {
4444
return gobool(C.gst_timed_value_control_source_set(C.toGstTimedValueControlSource(cs.Unsafe()), C.GstClockTime(time), C.double(value)))
4545
}
46+
47+
func (cs *InterpolationControlSource) UnsetAll() {
48+
C.gst_timed_value_control_source_unset_all(C.toGstTimedValueControlSource(cs.Unsafe()))
49+
}

0 commit comments

Comments
 (0)