If you used to play sudden codec in WMP then suddenly you could not play the same file format anymore with the above error.
Choose Tools -> Advanced -> Restore media library…
Watch the video below.
Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file