IAMStreamControl StartAt() doesn't work [modified]
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I want to control the avi write action by query the IAMStreamControl interface of input pin in pAviMux, see below: IAMStreamControl *pSC = NULL; hr = pMuxPin01->QueryInterface(IID_IAMStreamControl, (void **)&pSC); hr = pSC->StartAt(&rtStart, 0); //rtStart = 3 seconds hr = pSC->StopAt(&rtStop, FALSE, 0); //rtStop = 9 seconds hr = pMediaControl->Run(); when I set the parameter of StartAt() as NULL, it works OK, the pMuxAvi stop the writing at rtStop time. however, when I give a rtStart parameter to StartAt() function, the pMuxAvi write a corrupt avi file which is only 127kb in size. what's wrong with the StartAt() function? please help. -- modified at 6:02 Saturday 14th July, 2007