mirror of
https://github.com/go-gst/go-gst.git
synced 2025-11-03 10:30:52 +08:00
major rework of reference handling
This commit is contained in:
@@ -49,7 +49,7 @@ func ConvertSample(sample *gst.Sample, toCaps *gst.Caps, timeout time.Duration)
|
||||
if ret == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return gst.FromGstSampleUnsafe(unsafe.Pointer(ret)), nil
|
||||
return gst.FromGstSampleUnsafeFull(unsafe.Pointer(ret)), nil
|
||||
}
|
||||
|
||||
// ConvertSampleAsync converts a raw video buffer into the specified output caps.
|
||||
|
||||
Reference in New Issue
Block a user