When I get network source property follow the windows sdk
sample code, I found some issue with the code:
PROPERTYKEY key;
key.fmtid = MFNETSOURCE_STATISTICS;
key.pid = MFNETSOURCE_PROTOCOL_ID;
If I set PROPERTYKEY variable like the code above, I can get a value from IPropertyStore::GetValue().
PROPERTYKEY key;
key.fmtid = MFNETSOURCE_PROTOCOL;
key.pid = 0;
But if I set PROPERTYKEY variable like the code above, I can not get the value from IPropertyStore::GetValue().
The two IPropertyStore pointers are the same and queryed from IMFMediaSource pointer, also, the codes are both provided by windows sdk, why one can work well but the other not?
Did anyone met this problem, and can anyone do me a favor?
thanks a lot!
↧
Problem with network source property
↧