question

Groovykool-9087 avatar image
1 Vote"
Groovykool-9087 asked ·

await codecQuery.FindAllAsync(CodecKind.Audio, CodecCategory.Decoder, ""); causes Win32 Exception

await codecQuery.FindAllAsync(CodecKind.Audio, CodecCategory.Decoder, "");

Causes a Win32 Exception every time for me. All other CodecKind and CodecCategory combinations work fine.

repo:
https://github.com/groovykool/CodecQueryException.git

Can anyone confirm if this is a bug?

Thanks,
Tony

windows-uwp
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I can also reproduce this issue when tried to query audio decoder, but I'm not sure what caused this behavior. I'll confirm if it is an issue.

0 Votes 0 · ·

1 Answer

jadailey-MSFT avatar image
0 Votes"
jadailey-MSFT answered ·

Thanks much for bringing this to our attention. This does appear to be a code defect.

The issue is due to the way we are enumerating the new Web Media Extension Package. This package is not registered as expected causing the list of enumerated codecs to become corrupt. This in turn triggers a double free in the list.

The only workaround currently available is to uninstall the Web Media Extension Package. After uninstalling the package the API should work as expected. Keep in mind that by uninstalling this Package certain audio and video files may not play on your machine.

We will continue to investigate this issue and if possible consider a change to the API or the Web Media Extension Package in a future version of the OS.

Thanks again for reporting this and I do hope the workaround will be sufficient.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.