fix: allow send

This commit is contained in:
kieran 2024-11-11 15:03:38 +00:00
parent 363ad4f55c
commit 90b98598e1
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 5 additions and 2 deletions

View File

@ -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());

View File

@ -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 {}