diff --git a/go.sum b/go.sum index ad14e8f9..a638f0db 100644 --- a/go.sum +++ b/go.sum @@ -2,3 +2,5 @@ github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= github.com/tinyzimmer/go-glib v0.0.24 h1:ktZZC22/9t88kGRgNEFV/SESgIWhGHE+q7Z7Qj++luw= github.com/tinyzimmer/go-glib v0.0.24/go.mod h1:ltV0gO6xNFzZhsIRbFXv8RTq9NGoNT2dmAER4YmZfaM= +github.com/tinyzimmer/go-glib v0.0.25 h1:2GpumtkxA0wpXhCXP6D3ksb5pGMfo9WbhgLvEw8njK4= +github.com/tinyzimmer/go-glib v0.0.25/go.mod h1:ltV0gO6xNFzZhsIRbFXv8RTq9NGoNT2dmAER4YmZfaM= diff --git a/gst/gst_pipeline.go b/gst/gst_pipeline.go index 9e5b6187..d87299f5 100644 --- a/gst/gst_pipeline.go +++ b/gst/gst_pipeline.go @@ -5,8 +5,6 @@ import "C" import ( "errors" - "fmt" - "strings" "unsafe" "github.com/tinyzimmer/go-glib/glib" @@ -45,9 +43,6 @@ func NewPipeline(name string) (*Pipeline, error) { // NewPipelineFromString creates a new gstreamer pipeline from the given launch string. func NewPipelineFromString(launchv string) (*Pipeline, error) { - if len(strings.Split(launchv, "!")) < 2 { - return nil, fmt.Errorf("Given string is too short for a pipeline: %s", launchv) - } cLaunchv := C.CString(launchv) defer C.free(unsafe.Pointer(cLaunchv)) var gerr *C.GError