尝试更新媒体属性时,IPPropertyStore->提交错误 [英] IPropertyStore->Commit error when trying to update media attributes

查看:210
本文介绍了尝试更新媒体属性时,IPPropertyStore->提交错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在尝试开发一个使用Microsoft Media Foundation读取和更新媒体信息的应用程序.我能够读取和显示媒体属性,例如标题,年份等.但是,当我尝试更新相同的媒体时,会出现错误. IPropretyStore-> SetValue返回成功,但是IPropertyStore-> Commit返回访问被拒绝".无论文件位于何处,任何目录,在库中等如何,我都会收到此错误.

出于测试目的,我使用.mp3文件,并且二进制文件已使用SDK 7.1和Windows 7 OS(家庭高级版)进行了编译,修复此问题的任何帮助将不胜感激.

问候,
Vivek

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

推荐答案

阅读Microsoft文档,似乎如果基础格式具有限制性,则该操作将失败"(引用文档中的内容).

这意味着,如果为mp3扩展程序安装的处理程序不允许更新属性,则对SetValue的调用将失败.

尝试为mp3文件安装另一个程序(与winamp等相关联).
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.).


这篇关于尝试更新媒体属性时,IPPropertyStore->提交错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆