Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Dear All,

I am trying to develop an application that reads and updates media information using Microsoft Media Foundation. I am able to read and display media attributes such as title, year etc. however when i try to update the same media, it gives an error. IPropretyStore->SetValue returns success however IPropertyStore->Commit returns "Access denied". I am getting this error not matter where the file is, any directory, within librerary etc.

For testing purpose I am using .mp3 file and the binary has been compiled using SDK 7.1 and Windows 7 OS (Home Premium), any help to fix this will be greatly appreciated.

Regards,
Vivek
Posted

1 solution

Reading the Microsoft documentation it seems that "if the underlying format is restrictive then the operation will fail" (quote from the documentation).

This means if the handler installed for your mp3 extension does not allow updates to the properties then the call to SetValue will fail.

Try installing another program for mp3 files (associate with say winamp etc.).
 
Share this answer
 
Comments
vivek madhavan 11-Sep-11 9:06am    
Hello Mehdi,

Thanx for your time in looking at my issue.

Earlier I was using VLC as the default application, after your suggestion i changed it to WMP. The problem still remains at the same line of code.

With both the applications as default, it is possible to edit certain tags thru the explorer (Windows explorer->select file->properties or the ribbon at the bottom of the explorer).

Thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900