1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02: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:
alex 2003-02-25 16:17:23 +00:00
parent e8f2dabe9b
commit 8401d53158
4 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);

View File

@ -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));