fix: allow send
This commit is contained in:
parent
363ad4f55c
commit
90b98598e1
@ -239,11 +239,10 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore] // WIP
|
|
||||||
fn test_stream_groups() -> Result<()> {
|
fn test_stream_groups() -> Result<()> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut demux =
|
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()?;
|
let probe = demux.probe_input()?;
|
||||||
assert_eq!(1, probe.streams.len());
|
assert_eq!(1, probe.streams.len());
|
||||||
assert_eq!(1, probe.groups.len());
|
assert_eq!(1, probe.groups.len());
|
||||||
|
@ -118,6 +118,8 @@ pub struct StreamInfo {
|
|||||||
pub(crate) stream: *mut AVStream,
|
pub(crate) stream: *mut AVStream,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for StreamInfo {}
|
||||||
|
|
||||||
impl StreamInfo {
|
impl StreamInfo {
|
||||||
pub fn best_metric(&self) -> f32 {
|
pub fn best_metric(&self) -> f32 {
|
||||||
match self.stream_type {
|
match self.stream_type {
|
||||||
@ -184,3 +186,5 @@ pub struct StreamGroupInfo {
|
|||||||
// private pointer
|
// private pointer
|
||||||
pub(crate) group: *mut AVStreamGroup,
|
pub(crate) group: *mut AVStreamGroup,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for StreamGroupInfo {}
|
Loading…
x
Reference in New Issue
Block a user