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

Updating the header on the ASF Media Sink via IMFASFContentInfo::SetProfile only works with one stream ?

$
0
0

Hello,

i am altering the header on the ASF Media Sink before it gets written to the file.

This works very well with one stream on the IMFASFProfile, but with multiple streams it shows some odd behavior. When i have more than one stream on the profile then a call to IMFASFContentInfo::SetProfile will fail and the first stream is deleted from the final file.

I went exactly after the documentation and payed very close attention to the clones of objects like the IMFASFStreamConfig or IMFASFProfile. I know my updated profile is correct, because i printed the whole thing after i made some changes to the streams.

The problem must be inside IMFASFContentInfo::SetProfile, because when i do not set the updated profile the streams and its headers appear normal in file, but of course with no changes. The MSDN documentary states that on SetProfile it replaces the old profile with the new one, but from my experience it only does when you have one stream in the profile.

Current behavior of IMFASFContentInfo::SetProfile :

With only one stream in a profile the function replaces the existent profile with the new one. With multiple streams on a profile the function always fails ( even if the profile is the original one with no changes ) and deletes the first stream from the final file.

I would realy like to hear from the MS team what attributes SetProfile is checking on the profile and how to get it to work with multiple streams.

regards

co0Kie














Viewing all articles
Browse latest Browse all 1079

Trending Articles



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