View Single Post
Old 17th August 2010, 14:17   #49  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
Quote:
Originally Posted by STaRGaZeR View Post
I think that's the best solution. Changing the media type and wait for the decoder to adapt itself is just asking for trouble. It could work with one filter but not with another. Thanks for looking into it
Well, audio is a bit different in that regard, as the audio decoder filter can change between streams. So i delete it and let the GraphBuilder rebuild the graph.

Now with subtitles and ffdshow.. I can't do the same, as ffdshow is also the video decoder, and deleting that one isn't working out too good. But then, i don't really have to, as basically all subtitle renderers i know are used for all kinds of subtitles. So i'll see if i can just disconnect the pin and cause a reconnect that will make the filter initialize itself again without doing the full delete magic.

Sadly this area isn't really covered by any documentation i found, and all other splitters that seem to handles this properly are closed source, so bear with me while i try different approaches. =)

Last edited by nevcairiel; 17th August 2010 at 14:24.
nevcairiel is offline   Reply With Quote