From past few weeks whenever i opened Mozilla Fire Fox in my system (it can be any other program in your case), i encountered this annoying error . Find below the steps that how i resolved this issue.
1. Click on Start button.
2. Click on Run.
3. In Run window copy/paste text marked in red without quotes “regsvr32 /u shmedia.dll” and click ok.
4. A message box with succeeded message will display. Click ok.
5. You are done..
Now whenever you will open the problematic thing ( in my case Mozilla fire fox). This annoying error will not bother you any more. 🙂