Hi,
To test the code generation part of GEP I designed a small graph (
link) which works fine in GEP (only thing I had to do was manually set the grabbers media format to RGB24). The code however does not work, using direct connect I get an AV in
//connect WDM 2821 Crossbar and USB 2821 Device
hr = pGraph->ConnectDirect(GetPin(pWDM2821Crossbar, L"0: Video Decoder Out"), GetPin(pUSB2821Device2, L"Analoge video-ingang"), NULL);
using stream connect I get a "cannot connect pins" error in
//connect WDM 2821 Crossbar and USB 2821 Device
hr = pBuilder->RenderStream(NULL, &MEDIATYPE_AnalogVideo, pWDM2821Crossbar, NULL, pUSB2821Device);
The code until this runs fine and all pointers are available.
Note if I write my own code that builds this graph (using intelligent connect) all goes well.
Is this a bug or am I doing something wrong?? It seems GEP connects the pin in a different manner than the code it generates?
Windows XP, C++ Builder 2006, DX8
Thanks,
Mike