Windows > Software Development for Windows Client Forums > DirectShow Development > Can't connect WMASFReader and WMVideo Decoder DMO/WMAudio Decoder DMO
Ask a questionAsk a question
 

QuestionCan't connect WMASFReader and WMVideo Decoder DMO/WMAudio Decoder DMO

  • Saturday, November 07, 2009 10:40 PMCDXX Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    When I use IGraphBuilder.ConnectDirect to connect the video and audio output pins of WMASFReader ('Raw Video 1' / 'Raw Audio 2') with the 'in0' pins of the Decoder DMO's, I get a "There is no common media type between these pins" message. I am using C# with the DirectShowLib as a wrapper, but elsewhere in the graph this method is working fine. I thought that these filters worked naturally together, but it seems not. I'm using MKParseDisplayName to make sure I'm instantiating the right DMO. Again, this works fine in GraphEdit, but not in my code. I need to render the audio and video locally, but split the streams to use a network sink in addition to the local video/audio renderer, so I need to build the graph explicitly, rather than use Intelligent Connect. How can I force these pins together :-)?

    I am using VS2008 on Windows 7/64, but I'm targeting x86 platforms.