media seeking can't work in my decoder filter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



the problem is when I try to play a H.264 avi file with my decoder
filter, media seeking doesn't work. as soon as I try to seek, the graph
stopped immediately and restart to run from first frame.
I build the graph like this:
file source(H.264 avi file) -> avi splitter -> decoder -> video render
I've checked other filters such as xvid or ffdshow's implementation,
and I can find nothing different from my filter and nothing about media
seeking in these transform filters, but they all work correctly.
maybe I should set timestamp for every samples passed to next filter,
so I add such code:
....
CRefTime rtEnd = m_time + m_avgFrameTime;
pOutSample->SetTime(&m_time.m_time, &rtEnd.m_time);
m_time = rtEnd;
but it don't help, what's wrong with my filter?
Thanks a lot!

.



Relevant Pages

  • Re: Moniker binding problem
    ... decoder that I have. ... I don't understand why, if I can identify the filter, I ... So I have been trying to build a filter graph using the ... > which most MPEG-2 decoders deliver. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Problem connecting mp3 source filter
    ... without the "MPEG Layer3 Decoder" in the graph? ... AFAIK Vista just doesn't have a generic MP3 ... "As a decompression filter, the ACM Wrapper appears in the "DirectShow ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: GraphEdit Render Media File...
    ... I don't really see why the mpeg2 decoder should work in GraphEdit and not ... and I suppose that nvidia could have piggy-backed ... > But how does the nvidia filter know that it's myapp's graph and not ... > GE's or WMP's graph. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Previewing live capture from MPEG2
    ... capture graph should use the CaptureGraphBuilder2 and do ... That is a utility method to simplify graph buildig. ... Demux filter or upstream of the MPEG2 decoder filter - ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: RenderFile Memory Leak MP3 playback only
    ... example) so I considered possibility of a filter problem but graph is ... Decoder, ... Windows Media Player 10 does not exhibit same ... Can you try using the Windows Media source filter for the MP3's? ...
    (microsoft.public.win32.programmer.directx.audio)