don't new hwcodec decoders if option disabled

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-12-13 09:47:23 +08:00
parent cd511010a8
commit e58f2186ec
3 changed files with 18 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ impl Deref for MediaCodecDecoder {
}
}
#[derive(Default)]
pub struct MediaCodecDecoders {
pub h264: Option<MediaCodecDecoder>,
pub h265: Option<MediaCodecDecoder>,