From 90b98598e1fee6ddc52787c5c88924b52146b026 Mon Sep 17 00:00:00 2001 From: kieran Date: Mon, 11 Nov 2024 15:03:38 +0000 Subject: [PATCH] fix: allow send --- src/demux.rs | 3 +-- src/stream_info.rs | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/demux.rs b/src/demux.rs index 67009bd..c551f1c 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -239,11 +239,10 @@ mod tests { use super::*; #[test] - #[ignore] // WIP fn test_stream_groups() -> Result<()> { unsafe { let mut demux = - Demuxer::new("https://trac.ffmpeg.org/raw-attachment/ticket/11170/IMG_4765.HEIC")?; + Demuxer::new("/core/Camera/Syncthing/Camera S22/Camera/20241104_121607.heic")?; let probe = demux.probe_input()?; assert_eq!(1, probe.streams.len()); assert_eq!(1, probe.groups.len()); diff --git a/src/stream_info.rs b/src/stream_info.rs index 284adb7..be73fb0 100644 --- a/src/stream_info.rs +++ b/src/stream_info.rs @@ -118,6 +118,8 @@ pub struct StreamInfo { pub(crate) stream: *mut AVStream, } +unsafe impl Send for StreamInfo {} + impl StreamInfo { pub fn best_metric(&self) -> f32 { match self.stream_type { @@ -184,3 +186,5 @@ pub struct StreamGroupInfo { // private pointer pub(crate) group: *mut AVStreamGroup, } + +unsafe impl Send for StreamGroupInfo {} \ No newline at end of file