quartz: Fix error with operator precedence.
This commit is contained in:
parent
d9f755875b
commit
e6e4056e1e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue