quartz: Fix IMediaSample2 SetPreroll and SetSyncPoint.

This commit is contained in:
Maarten Lankhorst 2008-04-16 14:24:16 -07:00 committed by Alexandre Julliard
parent cbb0ff37fa
commit 382a61391f
1 changed files with 8 additions and 2 deletions

View File

@ -586,7 +586,10 @@ static HRESULT WINAPI StdMediaSample2_SetSyncPoint(IMediaSample2 * iface, BOOL b
TRACE("(%s)\n", bIsSyncPoint ? "TRUE" : "FALSE");
This->props.dwSampleFlags = (This->props.dwSampleFlags & ~AM_SAMPLE_SPLICEPOINT) | bIsSyncPoint ? AM_SAMPLE_SPLICEPOINT : 0;
if (bIsSyncPoint)
This->props.dwSampleFlags |= AM_SAMPLE_SPLICEPOINT;
else
This->props.dwSampleFlags &= ~AM_SAMPLE_SPLICEPOINT;
return S_OK;
}
@ -606,7 +609,10 @@ static HRESULT WINAPI StdMediaSample2_SetPreroll(IMediaSample2 * iface, BOOL bIs
TRACE("(%s)\n", bIsPreroll ? "TRUE" : "FALSE");
This->props.dwSampleFlags = (This->props.dwSampleFlags & ~AM_SAMPLE_PREROLL) | bIsPreroll ? AM_SAMPLE_PREROLL : 0;
if (bIsPreroll)
This->props.dwSampleFlags &= ~AM_SAMPLE_PREROLL;
else
This->props.dwSampleFlags |= AM_SAMPLE_PREROLL;
return S_OK;
}