mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-08 09:20:19 +08:00
regenerate and fix build
This commit is contained in:
@@ -96,7 +96,7 @@ func encodeGif() error {
|
||||
// use this value to calculate the total number of frames we expect to produce.
|
||||
query := gst.NewQueryDuration(gst.FormatTime)
|
||||
if ok := self.Query(query); !ok {
|
||||
self.MessageError(0, int(gst.LibraryErrorFailed), "Failed to query video duration from decodebin", "")
|
||||
self.MessageError(0, int32(gst.LibraryErrorFailed), "Failed to query video duration from decodebin", "")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ func encodeGif() error {
|
||||
// mapped buffers implement io.Reader
|
||||
img, err := jpeg.Decode(mapped)
|
||||
if err != nil {
|
||||
self.MessageError(gst.LibraryErrorQuark(), int(gst.LibraryErrorFailed), "Error decoding jpeg frame", err.Error())
|
||||
self.MessageError(gst.LibraryErrorQuark(), int32(gst.LibraryErrorFailed), "Error decoding jpeg frame", err.Error())
|
||||
return gst.FlowError
|
||||
}
|
||||
|
||||
|
10
generator.go
10
generator.go
@@ -241,6 +241,16 @@ var Data = genmain.Overlay(
|
||||
audioSink.FindVirtualMethod("prepare").ParentName = "ParentPrepareAudioSink"
|
||||
audioSink.FindVirtualMethod("stop").ParentName = "ParentStopAudioSink"
|
||||
|
||||
return nil
|
||||
},
|
||||
// Virtual methods of RTPBasePayload collide with Element
|
||||
func(r *typesystem.Registry) error {
|
||||
rtp := r.FindNamespaceByName("GstRtp-1")
|
||||
|
||||
rtpBasePayload := rtp.FindLocalTypeByGIRName("RTPBasePayload").(*typesystem.Class)
|
||||
|
||||
rtpBasePayload.FindVirtualMethod("query").ParentName = "ParentQueryRTPBasePayload"
|
||||
|
||||
return nil
|
||||
},
|
||||
},
|
||||
|
@@ -582,7 +582,7 @@ func _gotk4_gst1_TaskFunction(carg1 C.gpointer) {
|
||||
}
|
||||
|
||||
//export _gotk4_gst1_TaskPoolFunction
|
||||
func _gotk4_gst1_TaskPoolFunction(carg1 *C.void) {
|
||||
func _gotk4_gst1_TaskPoolFunction(carg1 unsafe.Pointer) {
|
||||
var fn TaskPoolFunction
|
||||
{
|
||||
v := userdata.Load(unsafe.Pointer(carg1))
|
||||
|
@@ -2377,7 +2377,7 @@ type RTPBasePayload interface {
|
||||
//
|
||||
// process data
|
||||
ParentHandleBuffer(buffer *gst.Buffer) gst.FlowReturn
|
||||
// ParentQuery calls the default implementations of the query virtual method.
|
||||
// ParentQueryRTPBasePayload calls the default implementations of the query virtual method.
|
||||
// This function's behavior is not defined when the parent does not implement the virtual method.
|
||||
//
|
||||
// The function takes the following parameters:
|
||||
@@ -2390,7 +2390,7 @@ type RTPBasePayload interface {
|
||||
// - goret bool
|
||||
//
|
||||
// custom query handling
|
||||
ParentQuery(pad gst.Pad, query *gst.Query) bool
|
||||
ParentQueryRTPBasePayload(pad gst.Pad, query *gst.Query) bool
|
||||
// ParentSetCaps calls the default implementations of the set_caps virtual method.
|
||||
// This function's behavior is not defined when the parent does not implement the virtual method.
|
||||
//
|
||||
@@ -3097,7 +3097,7 @@ func (payload *RTPBasePayloadInstance) ParentHandleBuffer(buffer *gst.Buffer) gs
|
||||
return goret
|
||||
}
|
||||
|
||||
// ParentQuery calls the default implementations of the query virtual method.
|
||||
// ParentQueryRTPBasePayload calls the default implementations of the query virtual method.
|
||||
// This function's behavior is not defined when the parent does not implement the virtual method.
|
||||
//
|
||||
// The function takes the following parameters:
|
||||
@@ -3110,7 +3110,7 @@ func (payload *RTPBasePayloadInstance) ParentHandleBuffer(buffer *gst.Buffer) gs
|
||||
// - goret bool
|
||||
//
|
||||
// custom query handling
|
||||
func (payload *RTPBasePayloadInstance) ParentQuery(pad gst.Pad, query *gst.Query) bool {
|
||||
func (payload *RTPBasePayloadInstance) ParentQueryRTPBasePayload(pad gst.Pad, query *gst.Query) bool {
|
||||
var carg0 *C.GstRTPBasePayload
|
||||
var carg1 *C.GstPad // in, none, converted
|
||||
var carg2 *C.GstQuery // in, none, converted
|
||||
|
Reference in New Issue
Block a user