|
Posted by Gary Daniels [MS] on June 5, 2007, 9:25 pm
Please log in for more thread options
My only guess would be that the format renegotiation is causing a disconnect
between the video capture filter and your filter. Try manually disconnecting
your filter from the video capture filter before setting the new format and
then reconnect and see if the reconnect succeeds. It's possible that when
the set format does the reconnect internally the error code from the
reconnect isn't getting back to you because of some quirk of the graph
layout. This has been tested to work with both the video renderer and still
image sink connected to the video capture filter.
Gary Daniels
Windows CE Multimedia and Graphics
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
> I've created a custom render filter to capture camera frames via
> DoRenderSample, all is working well but I've run into a small glitch.
>
> I've initialized directshow, set the media type to YV12 and then
> called RenderStream to get the filter graph all connected. After
> calling IMediaControl->Run, I can capture YV12 frames via the
> DoRenderSample of my CBaseVideoRenderer derived class.
>
> However I'm running into a problem. If I stop the graph from running
> via IMediaControl->Stop, call
> IAMStreamConfig->SetFormat to set a UYVY format and different
> resolution and then call IMediaControl->Start, I am no longer able to
> recieve frames from DoRenderSample. If I switch resolutions between
> different YV12 formats, it works out fine but not when I switch color
> formats too.
>
> Any ideas?
>
|