Direct Show streaming problem

Hi all,
I have WDM AVStream driver for USB camera.
Which is working fine.Now i am facing one typical problem.
When streaming is happening if i move any other application on preview
window of direct show application, suddenly straming stops. I got a
message like " Getting clone pointer failed".
I am posting my Allocator framing structure with this mail
#define MAX_BUFFERS 4
#define MJPG_FRAME_SIZE 24576
DECLARE_SIMPLE_FRAMING_EX
(
gVCDVidPinAllocator,
STATICGUIDOF(KSMEMORY_TYPE_KERNEL_NONPAGED),
KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY |
KSALLOCATOR_REQUIREMENTF_INPLACE_MODIFIER |
KSALLOCATOR_REQUIREMENTF_PREFERENCES_ONLY,
(MAX_BUFFERS + 1), /* Specifies the total number
of allowable outstanding frames */
0,
MJPG_FRAME_SIZE, /* Max Size */
MJPG_FRAME_SIZE /* Min Size */
);
Am i missing any flags in allocator framing ???
. I guess some point of time direct show is not giving me buffers. Is
there any way to say directshow that always give me buffer what ever may
be the condition. If any body having pointers on this problem pls let me
know.
I am waiting for ur reply.

regards,
Rafi Maniyar


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219 _________________|