Skip to content

Commit 520e7bd

Browse files
committed
video/external: Arc<OpenH264> -> Rc<OpenH264>
There's no multithreaded access to this anyway.
1 parent fddd760 commit 520e7bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

video/external/src/decoder/openh264.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::fs::File;
55
use std::io::copy;
66
use std::path::{Path, PathBuf};
77
use std::ptr;
8-
use std::sync::Arc;
8+
use std::rc::Rc;
99

1010
use crate::decoder::openh264_sys::{self, videoFormatI420, ISVCDecoder, OpenH264};
1111
use crate::decoder::VideoDecoder;
@@ -39,7 +39,7 @@ pub enum OpenH264Error {
3939

4040
/// OpenH264 codec representation.
4141
pub struct OpenH264Codec {
42-
openh264: Arc<OpenH264>,
42+
openh264: Rc<OpenH264>,
4343
}
4444

4545
impl OpenH264Codec {
@@ -163,7 +163,7 @@ impl OpenH264Codec {
163163
}
164164

165165
Ok(Self {
166-
openh264: Arc::new(openh264),
166+
openh264: Rc::new(openh264),
167167
})
168168
}
169169

@@ -197,7 +197,7 @@ pub struct H264Decoder {
197197
/// How many bytes are used to store the length of the NALU (1, 2, 3, or 4).
198198
length_size: u8,
199199

200-
openh264: Arc<OpenH264>,
200+
openh264: Rc<OpenH264>,
201201
decoder: *mut ISVCDecoder,
202202
}
203203

0 commit comments

Comments
 (0)