fix audio and video packages, update glib dependency

This commit is contained in:
RSWilli
2023-12-04 11:50:08 +01:00
parent 1cb6d9f064
commit 493e2ff7e7
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ go 1.21
require github.com/mattn/go-pointer v0.0.1
require github.com/go-gst/go-glib v0.0.0-20231129143528-6abb4f7af939
require github.com/go-gst/go-glib v0.0.0-20231204104758-af5ab66d800c
+2
View File
@@ -1,4 +1,6 @@
github.com/go-gst/go-glib v0.0.0-20231129143528-6abb4f7af939 h1:Z2FvB66fEGvIqzVSOCboWFsoyQgacUR8duoyb43RXAc=
github.com/go-gst/go-glib v0.0.0-20231129143528-6abb4f7af939/go.mod h1:rXuKU+tCN7pN+b/7oIyWv6MpnlGy+QWd7jRhWUNstjU=
github.com/go-gst/go-glib v0.0.0-20231204104758-af5ab66d800c h1:F5+xSMyB0KMOt/9LakFnE+74ZKvLrOY3JSDpnMkfKMQ=
github.com/go-gst/go-glib v0.0.0-20231204104758-af5ab66d800c/go.mod h1:rXuKU+tCN7pN+b/7oIyWv6MpnlGy+QWd7jRhWUNstjU=
github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o0=
github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc=
+1 -3
View File
@@ -8,8 +8,6 @@ framesToClockTime (gint frames, gint rate) { return GST_FRAMES_TO_CLOCK_TIME(fra
gint
clockTimeToFrames(GstClockTime ct, gint rate) { return GST_CLOCK_TIME_TO_FRAMES(ct, rate); }
GValue * audioUtilToGValue (guintptr p) { return (GValue*)(p); }
*/
import "C"
import (
@@ -44,5 +42,5 @@ func gobool(b C.gboolean) bool {
}
func ptrToGVal(p unsafe.Pointer) *C.GValue {
return (*C.GValue)(C.audioUtilToGValue(C.guintptr(p)))
return (*C.GValue)(p)
}
+1 -1
View File
@@ -45,7 +45,7 @@ func init() {
{
T: glib.Type(C.gst_video_format_get_type()),
F: func(p unsafe.Pointer) (interface{}, error) {
c := C.g_value_get_enum(ptrToGVal(p))
c := C.g_value_get_enum((*C.GValue)(p))
return Format(c), nil
},
},