quartz: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-09-22 18:50:12 +01:00 committed by Alexandre Julliard
parent 0e9c97eba3
commit 04423c4f59
2 changed files with 5 additions and 3 deletions

View File

@ -169,8 +169,9 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co
TRACE("(%p)->(%p)\n", This, pmt);
/* Check root (GUID w/o FOURCC) */
if ((IsEqualIID(&pmt->majortype, &MEDIATYPE_Audio)) &&
(!memcmp(((char*)&pmt->subtype)+4, ((char*)&MEDIATYPE_Audio)+4, sizeof(GUID)-4)) && /* Check root (GUID w/o FOURCC) */
(!memcmp(((const char *)&pmt->subtype)+4, ((const char *)&MEDIATYPE_Audio)+4, sizeof(GUID)-4)) &&
(IsEqualIID(&pmt->formattype, &FORMAT_WaveFormatEx)))
{
HACMSTREAM drv;

View File

@ -157,9 +157,10 @@ static HRESULT AVIDec_ConnectInput(TransformFilterImpl* pTransformFilter, const
TRACE("(%p)->(%p)\n", This, pmt);
AVIDec_Cleanup(pTransformFilter);
/* Check root (GUID w/o FOURCC) */
if ((IsEqualIID(&pmt->majortype, &MEDIATYPE_Video)) &&
(!memcmp(((char*)&pmt->subtype)+4, ((char*)&MEDIATYPE_Video)+4, sizeof(GUID)-4)) && /* Check root (GUID w/o FOURCC) */
(!memcmp(((const char *)&pmt->subtype)+4, ((const char *)&MEDIATYPE_Video)+4, sizeof(GUID)-4)) &&
(IsEqualIID(&pmt->formattype, &FORMAT_VideoInfo)))
{
VIDEOINFOHEADER* format = (VIDEOINFOHEADER*)pmt->pbFormat;