Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SampleGrabber does not receive data

1 view
Skip to first unread message

Sample grabber problem on vista

unread,
Oct 4, 2009, 11:29:01 PM10/4/09
to

I'm using sample grabber filter to grab wave data of movie file.
The grabber does not receive any data after seek movie.
Here is sniff code.

If I don't seek movie, the sample grabber receive data as normal. My
operating system is vista bussiness.

----
Init() //build graph to render file

process() {
// Get the Duration of the playing file
LONGLONG lTotalDuration = 0;
m_pSeek->GetDuration(&lTotalDuration);
// Set the Current Playing position
REFERENCE_TIME rtNew = (lTotalDuration * lPosition) / 100;
HRESULT hr;
hr = m_pSeek->SetPositions(&rtNew,
AM_SEEKING_AbsolutePositioning,NULL,AM_SEEKING_NoPositioning);

if (SUCCESS(hr)) {
hr= m_pControl->pause();
hr= m_pControl->run();
}
}

0 new messages