Re: AVStream: DMA & Process() QUEUEing
From: Max Paklin (mpaklin_at_hotmail.com)
Date: 05/26/04
- Next message: Stephan Wolf: "Re: Urgent : Reloading settings for NDIS driver"
- Previous message: Stephan Wolf: "Re: Urgent : Reloading settings for NDIS driver"
- In reply to: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Next in thread: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Reply: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 May 2004 11:45:13 -0700
> What I was getting at was that the Flag
> (KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL) states that the
> process dispatch is only called when data arrives into a previously
> empty queue.
Which DDK are you reading?
Mine says
"Indicates that processing should occur every time a data frame arrives into
the queue. Without specifying this flag of
KSPIN_FLAG_DO_NOT_INITIATE_PROCESSING, the process dispatch is only called
when data arrives into a previously empty queue."
When you specify KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL processing
takes places every time a frame is queued.
> How can the QUEUE be empty when I have cloned stream pointers on a Frames?
>
> Cloning increases the reference count of the Frame thus not allowing the
> frame to be cancelled, thus ensuring that the QUEUE is not empty.
It is NOT empty.
You misinterpreted KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL flag.
To get what you want you have to __NOT__ specify
KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL and __NOT__ specify
KSPIN_FLAG_DO_NOT_INITIATE_PROCESSING on your pin.
> Put in what you mentioned to return STATUS_PENDING but just wondering
> why I get the second call to Process().
Because you asked for it. You get notified each time a frame is inserted in
the queue.
-- Max.
- Next message: Stephan Wolf: "Re: Urgent : Reloading settings for NDIS driver"
- Previous message: Stephan Wolf: "Re: Urgent : Reloading settings for NDIS driver"
- In reply to: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Next in thread: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Reply: WDD: "Re: AVStream: DMA & Process() QUEUEing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|