gst_init finally works and pops correctly

This commit is contained in:
Avi Zimmerman
2021-01-21 10:01:06 +02:00
parent a4741af5a5
commit 4fd15b6a7a
6 changed files with 50 additions and 28 deletions

View File

@@ -1,6 +1,8 @@
package main
import (
"math"
"github.com/tinyzimmer/go-glib/glib"
)
@@ -8,6 +10,9 @@ import (
// This is because the GType system doesn't allow for GObjects to share pointers
// to the exact same GParamSpecs.
const defaultPartSize = 1024 * 1024 * 128
const minPartSize = 1024 * 1024 * 5
var sinkProperties = []*glib.ParamSpec{
glib.NewStringParam(
"endpoint",
@@ -72,6 +77,13 @@ var sinkProperties = []*glib.ParamSpec{
nil,
glib.ParameterReadWrite,
),
glib.NewUint64Param(
"part-size",
"Part Size",
"Size for each part in the multi-part upload",
minPartSize, math.MaxInt64, defaultPartSize,
glib.ParameterReadWrite,
),
}
var srcProperties = []*glib.ParamSpec{