major rework of reference handling

This commit is contained in:
Avi Zimmerman
2021-01-19 00:18:30 +02:00
parent 63a53be42a
commit 1f7d60b390
79 changed files with 1239 additions and 800 deletions

View File

@@ -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.