hwcodec: remove bad MY_DECODER_STATE

When reset, the new of the decoder will be after it's drop

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-07-19 18:14:34 +08:00
parent 7aa431d349
commit 23deae0e52
2 changed files with 10 additions and 28 deletions

View File

@@ -178,7 +178,7 @@ pub struct HwDecoders {
}
impl HwDecoder {
fn best() -> CodecInfos {
pub fn best() -> CodecInfos {
get_config(CFG_KEY_DECODER).unwrap_or(CodecInfos {
h264: None,
h265: None,