Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Problem with network source property

$
0
0

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!


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>