summaryrefslogtreecommitdiffstats
path: root/loader/dshow/DS_AudioDecoder.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-23 08:07:07 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-23 08:07:07 +0000
commite33a1695bab717d2dd3a7e5c289ed822437b187f (patch)
tree2146e18e2a4b3eba6ea2c92468e22fee852513ec /loader/dshow/DS_AudioDecoder.c
parent0a02ca6ec3a8d7cd371b01f2def1269ea73b236e (diff)
downloadmpv-e33a1695bab717d2dd3a7e5c289ed822437b187f.tar.bz2
mpv-e33a1695bab717d2dd3a7e5c289ed822437b187f.tar.xz
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
Diffstat (limited to 'loader/dshow/DS_AudioDecoder.c')
-rw-r--r--loader/dshow/DS_AudioDecoder.c9
1 files changed, 3 insertions, 6 deletions
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)