quartz: Fix error with operator precedence
Chris Robinson
chris.kcat at gmail.com
Sat Apr 7 11:36:05 CDT 2007
-------------- next part --------------
From 738a0af3120c90d8c24c5d4672231099aa9440e1 Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat at gmail.com>
Date: Sat, 7 Apr 2007 05:42:54 -0700
Subject: [PATCH] quartz: Fix error with operator precedence
---
dlls/quartz/memallocator.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c
index 3cabe12..f9c64ac 100644
--- a/dlls/quartz/memallocator.c
+++ b/dlls/quartz/memallocator.c
@@ -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;
}
--
1.4.4.4
More information about the wine-patches
mailing list