changeset 9503:f47d484d8f28

cbAlign=1 fix for proper Windows support (noticed by Sascha Sommer)
author alex
date Tue, 25 Feb 2003 16:17:23 +0000
parents 241bba8f60e8
children cae70d37f337
files loader/dmo/DMO_VideoDecoder.c loader/dshow/DS_AudioDecoder.c loader/dshow/DS_VideoDecoder.c loader/dshow/allocator.c
diffstat 4 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dmo/DMO_VideoDecoder.c	Tue Feb 25 15:39:36 2003 +0000
+++ b/loader/dmo/DMO_VideoDecoder.c	Tue Feb 25 16:17:23 2003 +0000
@@ -280,8 +280,8 @@
     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    
--- a/loader/dshow/DS_AudioDecoder.c	Tue Feb 25 15:39:36 2003 +0000
+++ b/loader/dshow/DS_AudioDecoder.c	Tue Feb 25 16:17:23 2003 +0000
@@ -105,7 +105,8 @@
 
 	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);
     }
--- a/loader/dshow/DS_VideoDecoder.c	Tue Feb 25 15:39:36 2003 +0000
+++ b/loader/dshow/DS_VideoDecoder.c	Tue Feb 25 16:17:23 2003 +0000
@@ -277,9 +277,8 @@
     
     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);
     
--- a/loader/dshow/allocator.c	Tue Feb 25 15:39:36 2003 +0000
+++ b/loader/dshow/allocator.c	Tue Feb 25 16:17:23 2003 +0000
@@ -306,7 +306,8 @@
     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));