From e33a1695bab717d2dd3a7e5c289ed822437b187f Mon Sep 17 00:00:00 2001 From: voroshil Date: Fri, 23 Feb 2007 08:07:07 +0000 Subject: Fixed loading of VoxWare and wma9sp binary audio codecs using dshow engine. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22322 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/dshow/DS_AudioDecoder.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'loader/dshow/DS_AudioDecoder.c') diff --git a/loader/dshow/DS_AudioDecoder.c b/loader/dshow/DS_AudioDecoder.c index a67509f2fb..c2ab624b46 100644 --- a/loader/dshow/DS_AudioDecoder.c +++ b/loader/dshow/DS_AudioDecoder.c @@ -104,14 +104,11 @@ DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* return NULL; } + //Commit should be done before binary codec start + this->m_pDS_Filter->m_pAll->vt->Commit(this->m_pDS_Filter->m_pAll); + this->m_pDS_Filter->Start(this->m_pDS_Filter); - props.cBuffers=1; - props.cbBuffer=this->m_sOurType.lSampleSize; - props.cbAlign=1; - props.cbPrefix=0; - this->m_pDS_Filter->m_pAll->vt->SetProperties(this->m_pDS_Filter->m_pAll, &props, &props1); - this->m_pDS_Filter->m_pAll->vt->Commit(this->m_pDS_Filter->m_pAll); } /* catch (FatalError& e) -- cgit v1.2.3