mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 00:17:00 +08:00
add a couple returns
This commit is contained in:
@@ -65,6 +65,7 @@ func encodeGif(mainLoop *gst.MainLoop) error {
|
|||||||
err := gst.NewGError(2, err)
|
err := gst.NewGError(2, err)
|
||||||
pipeline.GetPipelineBus().
|
pipeline.GetPipelineBus().
|
||||||
Post(gst.NewErrorMessage(self, err, "", nil))
|
Post(gst.NewErrorMessage(self, err, "", nil))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the elements to the pipeline and sync their state with the pipeline
|
// Add the elements to the pipeline and sync their state with the pipeline
|
||||||
@@ -99,6 +100,7 @@ func encodeGif(mainLoop *gst.MainLoop) error {
|
|||||||
err := gst.NewGError(3, errors.New("Failed to query video duration from decodebin"))
|
err := gst.NewGError(3, errors.New("Failed to query video duration from decodebin"))
|
||||||
pipeline.GetPipelineBus().
|
pipeline.GetPipelineBus().
|
||||||
Post(gst.NewErrorMessage(self, err, "", nil))
|
Post(gst.NewErrorMessage(self, err, "", nil))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch the result from the query.
|
// Fetch the result from the query.
|
||||||
|
Reference in New Issue
Block a user