mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 13:21:13 +00:00
cbAlign=1 fix for proper Windows support (noticed by Sascha Sommer)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9504 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e8f2dabe9b
commit
8401d53158
@ -280,8 +280,8 @@ void DMO_VideoDecoder_StartInternal(DMO_VideoDecoder *this)
|
||||
props.cBuffers = 1;
|
||||
props.cbBuffer = this->m_sDestType.lSampleSize;
|
||||
|
||||
//don't know how to do this correctly
|
||||
props.cbAlign = props.cbPrefix = 0;
|
||||
props.cbAlign = 1;
|
||||
props.cbPrefix = 0;
|
||||
this->m_pDMO_Filter->m_pAll->vt->SetProperties(this->m_pDMO_Filter->m_pAll, &props, &props1);
|
||||
this->m_pDMO_Filter->m_pAll->vt->Commit(this->m_pDMO_Filter->m_pAll);
|
||||
#endif
|
||||
|
@ -105,7 +105,8 @@ DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX*
|
||||
|
||||
props.cBuffers=1;
|
||||
props.cbBuffer=this->m_sOurType.lSampleSize;
|
||||
props.cbAlign=props.cbPrefix=0;
|
||||
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);
|
||||
}
|
||||
|
@ -277,9 +277,8 @@ void DS_VideoDecoder_StartInternal(DS_VideoDecoder *this)
|
||||
|
||||
props.cBuffers = 1;
|
||||
props.cbBuffer = this->m_sDestType.lSampleSize;
|
||||
|
||||
//don't know how to do this correctly
|
||||
props.cbAlign = props.cbPrefix = 0;
|
||||
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);
|
||||
|
||||
|
@ -306,7 +306,8 @@ MemAllocator* MemAllocatorCreate()
|
||||
This->refcount = 1;
|
||||
This->props.cBuffers = 1;
|
||||
This->props.cbBuffer = 65536; /* :/ */
|
||||
This->props.cbAlign = This->props.cbPrefix = 0;
|
||||
This->props.cbAlign = 1;
|
||||
This->props.cbPrefix = 0;
|
||||
|
||||
This->vt = (IMemAllocator_vt*) malloc(sizeof(IMemAllocator_vt));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user