From a9adac85aaa481e4cc147c4b44ec9bf0b4c58f20 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 9 Jan 2020 15:25:55 +0530 Subject: [PATCH] gstreamer: pad: fix build on Windows GstPadProbeInfo.id is a gulong which are 32 bits on Windows. --- gstreamer/src/pad.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/pad.rs b/gstreamer/src/pad.rs index b9f17234e..ee1118045 100644 --- a/gstreamer/src/pad.rs +++ b/gstreamer/src/pad.rs @@ -1033,7 +1033,7 @@ where let mut probe_info = PadProbeInfo { mask: from_glib((*info).type_), - id: PadProbeId(NonZeroU64::new_unchecked((*info).id)), + id: PadProbeId(NonZeroU64::new_unchecked((*info).id as u64)), offset: (*info).offset, size: (*info).size, data: if (*info).data.is_null() {