mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 07:56:51 +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)
|
||||
pipeline.GetPipelineBus().
|
||||
Post(gst.NewErrorMessage(self, err, "", nil))
|
||||
return
|
||||
}
|
||||
|
||||
// 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"))
|
||||
pipeline.GetPipelineBus().
|
||||
Post(gst.NewErrorMessage(self, err, "", nil))
|
||||
return
|
||||
}
|
||||
|
||||
// Fetch the result from the query.
|
||||
|
Reference in New Issue
Block a user