From bee5ba3e33a808c8ddc733b02c4ad143b6ce8960 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sun, 6 Jan 2019 13:29:21 -0700 Subject: [PATCH] audio_core: hle: mf: fix a regression... ... an introduction in 8f591d3b85714383196fd21e744a7eed5302ff0a --- src/audio_core/hle/wmf_decoder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/audio_core/hle/wmf_decoder.cpp b/src/audio_core/hle/wmf_decoder.cpp index 1a6e147ee..92b53750c 100644 --- a/src/audio_core/hle/wmf_decoder.cpp +++ b/src/audio_core/hle/wmf_decoder.cpp @@ -146,7 +146,9 @@ int WMFDecoder::Impl::DecodingLoop(ADTSData adts_header, if (output_status == HAVE_MORE_DATA) continue; - LOG_ERROR(Audio_DSP, "Errors occurred when receiving output: {}", output_status); + if (output_status == NEED_MORE_INPUT) // according to MS document, this is not an error (?!) + return 1; + return -1; // return on other status } @@ -214,6 +216,7 @@ std::optional WMFDecoder::Impl::Decode(const BinaryRequest& requ continue; } + LOG_ERROR(Audio_DSP, "Errors occurred when receiving output"); return response; }