quartz: Fix error with operator precedence.

This commit is contained in:
Chris Robinson 2007-04-07 05:42:54 -07:00 committed by Alexandre Julliard
parent d9f755875b
commit e6e4056e1e

View file

@ -683,7 +683,10 @@ static HRESULT WINAPI StdMediaSample2_SetDiscontinuity(IMediaSample2 * iface, BO
TRACE("(%s)\n", bIsDiscontinuity ? "TRUE" : "FALSE");
This->props.dwSampleFlags = (This->props.dwSampleFlags & ~AM_SAMPLE_DATADISCONTINUITY) | bIsDiscontinuity ? AM_SAMPLE_DATADISCONTINUITY : 0;
if (bIsDiscontinuity)
This->props.dwSampleFlags |= AM_SAMPLE_DATADISCONTINUITY;
else
This->props.dwSampleFlags &= ~AM_SAMPLE_DATADISCONTINUITY;
return S_OK;
}