mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +08:00
gst_init finally works and pops correctly
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user