Hi all
I have a problem in streaming driver. i use the TestCap driver code as
templet . i delete it’s queue list for All SRB,i use the class driver’s
queue list,and then i only modify the capmain.c file and capvideo.c file
for pass build . now i add some hardware operate code in this templet. i
did not modify the capstrm.h file .I setup my driver,it report ok. then in
the DirectX’s GraphEdit, i connect the Testcap’s filter to the video
renderer filter,it will make the GraphEdit stop.i debug it in softice,i
found the IntersectInfo->SizeOfDataFormatBuffer < FormatSize
what should i do.
Thanks in advance
BitBug
This is normal connection procedure. KS Proxy has no idea about the size of
format your pin supports. So what it does it gives you small buffer
(sizeof(ULONG)) so that you can return size of your format block. KS Proxy
then allocates enough space to accomodate your format and passes it to you
on second attempt. So when you get buffer for format block of
sizeof(ULONG), you should return size of your format structure in provided
buffer and set pSrb->ActualBytesTransferred = sizeof(ULONG).
When you say that GraphEdit stops, I assume you mean that it locks up,
right? I think what’s happening is that KS Proxy desperately tries to
retrieve format from the pin so that it can either agree to proposed
connection or deny it. Pin however doesn’t provide it with meaningful data,
so it enters infinite loop. If this is what’s happening, it looks like a
problem with KS Proxy.
Max.
— BitBug wrote:
> Hi all
> I have a problem in streaming driver. i use the TestCap driver code as
> templet . i delete it’s queue list for All SRB,i use the class driver’s
> queue list,and then i only modify the capmain.c file and capvideo.c file
> for pass build . now i add some hardware operate code in this templet. i
> did not modify the capstrm.h file .I setup my driver,it report ok. then
> in
> the DirectX’s GraphEdit, i connect the Testcap’s filter to the video
> renderer filter,it will make the GraphEdit stop.i debug it in softice,i
> found the IntersectInfo->SizeOfDataFormatBuffer < FormatSize
> what should i do.
> Thanks in advance
> BitBug
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to %%email.unsub%%
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com