=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: quartz: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Fri Oct 25 10:57:56 CDT 2013


Module: wine
Branch: master
Commit: ec5da171e684a10e7dc2abd8e354b31f4e1593e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ec5da171e684a10e7dc2abd8e354b31f4e1593e4

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Fri Oct 25 00:19:07 2013 +0200

quartz: Use BOOL type where appropriate.

---

 dlls/quartz/avisplit.c      |   10 +++++-----
 dlls/quartz/filtergraph.c   |    2 +-
 dlls/quartz/videorenderer.c |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/quartz/avisplit.c b/dlls/quartz/avisplit.c
index 3d67a18..6cd28da 100644
--- a/dlls/quartz/avisplit.c
+++ b/dlls/quartz/avisplit.c
@@ -64,7 +64,7 @@ typedef struct StreamData
     DWORD entries;
     AVISTDINDEX **stdindex;
     DWORD frames;
-    DWORD seek;
+    BOOL seek;
 
     /* Position, in index units */
     DWORD pos, pos_next, index, index_next;
@@ -448,7 +448,7 @@ static HRESULT AVISplitter_first_request(LPVOID iface)
         stream->index_next = stream->index;
 
         /* This was sent after stopped->paused or stopped->playing, so set seek */
-        stream->seek = 1;
+        stream->seek = TRUE;
 
         /* There should be a packet queued from AVISplitter_next_request last time
          * It needs to be done now because this is the only way to ensure that every
@@ -973,7 +973,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
         DWORD y;
         DWORD64 frames = 0;
 
-        stream->seek = 1;
+        stream->seek = TRUE;
 
         if (stream->stdindex)
         {
@@ -1320,7 +1320,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface)
         pin->dwSamplesProcessed = 0;
         stream->index = 0;
         stream->pos = 0;
-        stream->seek = 1;
+        stream->seek = TRUE;
         if (stream->stdindex)
         {
             DWORD y, z = 0;
@@ -1396,7 +1396,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface)
             stream->index = 0;
         }
         stream->preroll = preroll;
-        stream->seek = 1;
+        stream->seek = TRUE;
     }
     LeaveCriticalSection(&This->Parser.filter.csFilter);
 
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 862a0c4..cca746b 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -88,7 +88,7 @@ static int EventsQueue_Destroy(EventsQueue* omr)
     return TRUE;
 }
 
-static int EventsQueue_PutEvent(EventsQueue* omr, const Event* evt)
+static BOOL EventsQueue_PutEvent(EventsQueue* omr, const Event* evt)
 {
     EnterCriticalSection(&omr->msg_crst);
     if (omr->msg_toget == ((omr->msg_tosave + 1) % omr->ring_buffer_size))
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index 9afa7bf..4e8f359 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -1031,7 +1031,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv)
     pVideoRenderer->IUnknown_inner.lpVtbl = &IInner_VTable;
     pVideoRenderer->IAMFilterMiscFlags_iface.lpVtbl = &IAMFilterMiscFlags_Vtbl;
 
-    pVideoRenderer->init = 0;
+    pVideoRenderer->init = FALSE;
     ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT));
     ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT));
     ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT));




More information about the wine-cvs mailing list