don't new hwcodec decoders if option disabled
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -37,6 +37,7 @@ impl Deref for MediaCodecDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct MediaCodecDecoders {
|
||||
pub h264: Option<MediaCodecDecoder>,
|
||||
pub h265: Option<MediaCodecDecoder>,
|
||||
|
||||
Reference in New Issue
Block a user