mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 07:56:51 +08:00
examples cleanup
This commit is contained in:
@@ -85,6 +85,7 @@ func (m *minioSrc) GetSize(self *base.GstBaseSrc) (bool, int64) {
|
||||
|
||||
func (m *minioSrc) Start(self *base.GstBaseSrc) bool {
|
||||
m.state.mux.Lock()
|
||||
defer m.state.mux.Unlock()
|
||||
|
||||
if m.state.started {
|
||||
self.ErrorMessage(gst.DomainResource, gst.ResourceErrorFailed, "MinIOSrc is already started", "")
|
||||
@@ -137,8 +138,6 @@ func (m *minioSrc) Start(self *base.GstBaseSrc) bool {
|
||||
|
||||
m.state.started = true
|
||||
|
||||
m.state.mux.Unlock()
|
||||
|
||||
self.StartComplete(gst.FlowOK)
|
||||
|
||||
self.Log(srcCAT, gst.LevelInfo, "MinIOSrc has started")
|
||||
|
Reference in New Issue
Block a user