Fix GStreamer appsink timeout type

This commit is contained in:
Stu Leak 2026-01-10 02:54:32 -05:00
parent 9ff49460e2
commit 15b09ee9df

View File

@ -289,7 +289,7 @@ func (p *GStreamerPlayer) GetFrameImage() (*image.RGBA, error) {
if p.appsink == nil {
return nil, errors.New("gstreamer appsink unavailable")
}
const pullTimeout = C.gint64(50 * 1000 * 1000)
pullTimeout := C.GstClockTime(50 * 1000 * 1000)
sample := C.gst_app_sink_try_pull_sample((*C.GstAppSink)(unsafe.Pointer(p.appsink)), pullTimeout)
if sample == nil {
return nil, nil