Mercurial > mplayer.hg
comparison loader/dshow/DS_Filter.c @ 1525:9525bff8bea8
fixed BITMAPINFO struct length truncation (WMV8)
author | arpi |
---|---|
date | Wed, 15 Aug 2001 00:38:01 +0000 |
parents | bf973bffe240 |
children | da26060c81ef |
comparison
equal
deleted
inserted
replaced
1524:1c8f80aeecdb | 1525:9525bff8bea8 |
---|---|
179 void DS_Filter::Start() | 179 void DS_Filter::Start() |
180 { | 180 { |
181 if (m_iState != 1) | 181 if (m_iState != 1) |
182 return; | 182 return; |
183 | 183 |
184 m_pFilter->vt->Pause(m_pFilter); | |
185 | |
184 HRESULT hr=m_pFilter->vt->Run(m_pFilter, 0); | 186 HRESULT hr=m_pFilter->vt->Run(m_pFilter, 0); |
185 if (hr != 0) | 187 if (hr != 0) |
186 { | 188 { |
187 Debug cerr<<"WARNING: m_Filter->Run() failed, error code "<<hex<<hr<<dec<<endl; | 189 Debug cerr<<"WARNING: m_Filter->Run() failed, error code "<<hex<<hr<<dec<<endl; |
188 } | 190 } |
192 Debug cerr<<"Error getting IMemAllocator interface "<<hex<<hr<<dec<<endl; | 194 Debug cerr<<"Error getting IMemAllocator interface "<<hex<<hr<<dec<<endl; |
193 m_pImp->vt->Release((IUnknown*)m_pImp); | 195 m_pImp->vt->Release((IUnknown*)m_pImp); |
194 return; | 196 return; |
195 } | 197 } |
196 m_pImp->vt->NotifyAllocator(m_pImp, m_pAll, 0); | 198 m_pImp->vt->NotifyAllocator(m_pImp, m_pAll, 0); |
199 | |
197 m_iState = 2; | 200 m_iState = 2; |
198 } | 201 } |
199 | 202 |
200 void DS_Filter::Stop() | 203 void DS_Filter::Stop() |
201 { | 204 { |