Re: "Catastrophic failure" in directshow graph
- From: "Aviad Rozenhek <aviadr1@xxxxxxxxx>" <aviadr1@xxxxxxxxx>
- Date: Mon, 7 Jan 2008 01:51:26 -0800 (PST)
On Jan 7, 12:12 am, Michel Roujansky - DirectShow Consultant and
Trainer <jeremiah_...@xxxxxxxxx> wrote:
On Jan 6, 8:08 pm, "avia...@xxxxxxxxx" <avia...@xxxxxxxxx> wrote:
I have reimplemented the filter, this time all sample deliveries are
made from the worker thread.
this has solved the "catastrophic failure" bug, but now sometimes the
video playback has short visible "loops" where the video frame jumps
back and forth in time.
I used logging and confirmed that I am always deliverng samples in
order, and sometimes some frames are repeated (delivered more than
once) when the gaps between source frames is too large. since I am
delivering in order and from only one thread, I don't understand how
is it that the playback gets loopy? (pun intended)
Hide quoted text -
- Show quoted text -
I have experienced the same "jumpy effect" in a situation where I had
a thread pushing samples towards a renderer. This was caused by the
fact that the allocator was delivering previously used memory buffers
(do not forget that MediaSamples get recycled) and by my thread
failing to actually copy some data to the buffers.
I am not too sure about your technique of keeping a reference on the
MediaSample to retain a valid sample. As Chris indicated, if this is a
D3D surface, it wont work (at least not the way you .
do you think that implementing this as a Transform (with copy) filter
will fix my issue?
.
- Follow-Ups:
- Re: "Catastrophic failure" in directshow graph
- From: Michel Roujansky - DirectShow Consultant and Trainer
- Re: "Catastrophic failure" in directshow graph
- References:
- "Catastrophic failure" in directshow graph
- From: aviadr1@xxxxxxxxx
- Re: "Catastrophic failure" in directshow graph
- From: Chris P.
- Re: "Catastrophic failure" in directshow graph
- From: aviadr1@xxxxxxxxx
- Re: "Catastrophic failure" in directshow graph
- From: Michel Roujansky - DirectShow Consultant and Trainer
- "Catastrophic failure" in directshow graph
- Prev by Date: vista custom filter media type is not acceptable - urgent help
- Next by Date: Re: "Catastrophic failure" in directshow graph
- Previous by thread: Re: "Catastrophic failure" in directshow graph
- Next by thread: Re: "Catastrophic failure" in directshow graph
- Index(es):
Relevant Pages
|