STDMETHODIMP CPosPassThru::GetRate(double * pdRate) { IMediaSeeking* pMS; HRESULT hr = GetPeerSeeking(&pMS); if (FAILED(hr)) { return hr; } hr = pMS->GetRate(pdRate); pMS->Release(); return hr; }
double video_get_rate(int id) { get_videor(videoStruct, id, -1); IMediaSeeking* pSeek; HRESULT hr = videoStruct->pGraph->QueryInterface(IID_IMediaSeeking, (void**)&pSeek); double rate = 0; hr = pSeek->GetRate(&rate); pSeek->Release(); return rate; }