Re: SetPositions() being called at the end of the stream

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Try putting a breakpoint there and check the call stack in the
debugger to see who's calling it. It

I put breakpoint in SetPositions, but in call stack I see that
quartz.dll is calling this function. I was wondering why SetPositions
is getting called at the end of the stream, even though no seeking
operation was requested...


On Aug 10, 6:44 am, "Thore B. Karlsen [DShow MVP]" <s...@xxxxxxxx>
wrote:
On Thu, 09 Aug 2007 13:44:04 -0000, vikram <vickys_...@xxxxxxxxxxxxxx>
wrote:

Hi,

I have implemented a demux filter whose output pins support
IMediaSeeking interface. The seeking is working as I expected it to
work, except at the end of the stream.

At the end of the stream, IMediaSeeking::SetPositions is getting
called with pCurrent (first argument) as 0. Now, because of this, the
filter thinks that user wants to seek to the first frame of the stream
and it tries to replay the stream.

Why is SetPositions getting called at the end of the stream? and, how
to differentiate this from normal seek operations done by the user?

Try putting a breakpoint there and check the call stack in the
debugger to see who's calling it. It would be helpful to set up the
debugger to use the Microsoft symbol server so you can tell where the
call is coming from.

--
Be seeing you.


.



Relevant Pages

  • debug build crashes when calling managed code
    ... In the debugger, when we call one of their APIs (we're calling a method on a ... The method we're calling takes a reference to an instance ... the stack and then call the method providing a reference to that instance. ...
    (microsoft.public.vc.language)
  • Re: SetPositions() being called at the end of the stream
    ... quartz.dll is calling this function. ... I was wondering why SetPositions ... is getting called at the end of the stream, ... but configuring your debugger to use the Microsoft ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: 8ms Timer for serial port access
    ... Then start calling readagain. ... stream of bytes that you acquire by calling read. ... Forget about timing. ... can read and be guaranteed that you have a complete frame). ...
    (comp.os.linux.development.apps)
  • Re: NT Service Problem
    ... I'd perform one more test before going to the debugger. ... but rather useless tools when the problem doesn't fail for you. ... I am also calling this function in ServiceMain ... The Service starts & stops successfully if I dont call this function. ...
    (microsoft.public.vc.mfc)
  • (ce6) Kernel Tracker blank
    ... PB Debugger Loaded ... no matching symbolic information found. ... 515068 PID:22e0042 TID:278001e KITL stream platmanXport: buffer ... 516812 PID:22e0042 TID:278001e CKITLConnection established for stream ...
    (microsoft.public.windowsce.platbuilder)