Commit ec5da171 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

quartz: Use BOOL type where appropriate.

parent 38adec4a
...@@ -64,7 +64,7 @@ typedef struct StreamData ...@@ -64,7 +64,7 @@ typedef struct StreamData
DWORD entries; DWORD entries;
AVISTDINDEX **stdindex; AVISTDINDEX **stdindex;
DWORD frames; DWORD frames;
DWORD seek; BOOL seek;
/* Position, in index units */ /* Position, in index units */
DWORD pos, pos_next, index, index_next; DWORD pos, pos_next, index, index_next;
...@@ -448,7 +448,7 @@ static HRESULT AVISplitter_first_request(LPVOID iface) ...@@ -448,7 +448,7 @@ static HRESULT AVISplitter_first_request(LPVOID iface)
stream->index_next = stream->index; stream->index_next = stream->index;
/* This was sent after stopped->paused or stopped->playing, so set seek */ /* 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 /* 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 * 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) ...@@ -973,7 +973,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
DWORD y; DWORD y;
DWORD64 frames = 0; DWORD64 frames = 0;
stream->seek = 1; stream->seek = TRUE;
if (stream->stdindex) if (stream->stdindex)
{ {
...@@ -1320,7 +1320,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface) ...@@ -1320,7 +1320,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface)
pin->dwSamplesProcessed = 0; pin->dwSamplesProcessed = 0;
stream->index = 0; stream->index = 0;
stream->pos = 0; stream->pos = 0;
stream->seek = 1; stream->seek = TRUE;
if (stream->stdindex) if (stream->stdindex)
{ {
DWORD y, z = 0; DWORD y, z = 0;
...@@ -1396,7 +1396,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface) ...@@ -1396,7 +1396,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface)
stream->index = 0; stream->index = 0;
} }
stream->preroll = preroll; stream->preroll = preroll;
stream->seek = 1; stream->seek = TRUE;
} }
LeaveCriticalSection(&This->Parser.filter.csFilter); LeaveCriticalSection(&This->Parser.filter.csFilter);
......
...@@ -88,7 +88,7 @@ static int EventsQueue_Destroy(EventsQueue* omr) ...@@ -88,7 +88,7 @@ static int EventsQueue_Destroy(EventsQueue* omr)
return TRUE; return TRUE;
} }
static int EventsQueue_PutEvent(EventsQueue* omr, const Event* evt) static BOOL EventsQueue_PutEvent(EventsQueue* omr, const Event* evt)
{ {
EnterCriticalSection(&omr->msg_crst); EnterCriticalSection(&omr->msg_crst);
if (omr->msg_toget == ((omr->msg_tosave + 1) % omr->ring_buffer_size)) if (omr->msg_toget == ((omr->msg_tosave + 1) % omr->ring_buffer_size))
......
...@@ -1031,7 +1031,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv) ...@@ -1031,7 +1031,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv)
pVideoRenderer->IUnknown_inner.lpVtbl = &IInner_VTable; pVideoRenderer->IUnknown_inner.lpVtbl = &IInner_VTable;
pVideoRenderer->IAMFilterMiscFlags_iface.lpVtbl = &IAMFilterMiscFlags_Vtbl; pVideoRenderer->IAMFilterMiscFlags_iface.lpVtbl = &IAMFilterMiscFlags_Vtbl;
pVideoRenderer->init = 0; pVideoRenderer->init = FALSE;
ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT)); ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT)); ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT)); ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment