quartz: Use boolean constants for BOOL.
This commit is contained in:
parent
6e51cfddfd
commit
e4823f9b27
|
@ -204,9 +204,9 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, IMediaSample *pCurrentSample)
|
|||
if (SUCCEEDED(hr))
|
||||
{
|
||||
IMediaSample_SetTime(sample, &rtSampleStart, &rtSampleStop);
|
||||
IMediaSample_SetPreroll(sample, 0);
|
||||
IMediaSample_SetDiscontinuity(sample, 0);
|
||||
IMediaSample_SetSyncPoint(sample, 1);
|
||||
IMediaSample_SetPreroll(sample, FALSE);
|
||||
IMediaSample_SetDiscontinuity(sample, FALSE);
|
||||
IMediaSample_SetSyncPoint(sample, TRUE);
|
||||
hr = IAsyncReader_Request(pin->pReader, sample, 0);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
|
@ -710,7 +710,7 @@ static HRESULT MPEGSplitter_first_request(LPVOID iface)
|
|||
IMediaSample_SetPreroll(sample, FALSE);
|
||||
IMediaSample_SetDiscontinuity(sample, TRUE);
|
||||
IMediaSample_SetSyncPoint(sample, 1);
|
||||
This->seek = 0;
|
||||
This->seek = FALSE;
|
||||
|
||||
hr = IAsyncReader_Request(pin->pReader, sample, 0);
|
||||
if (SUCCEEDED(hr))
|
||||
|
@ -769,7 +769,7 @@ HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv)
|
|||
CoTaskMemFree(This);
|
||||
return hr;
|
||||
}
|
||||
This->seek = 1;
|
||||
This->seek = TRUE;
|
||||
|
||||
/* Note: This memory is managed by the parser filter once created */
|
||||
*ppv = This;
|
||||
|
|
|
@ -212,7 +212,7 @@ static HRESULT PullPin_Init(const IPinVtbl *PullPin_Vtbl, const PIN_INFO * pPinI
|
|||
pPinImpl->dRate = 1.0;
|
||||
pPinImpl->state = Req_Die;
|
||||
pPinImpl->fnCustomRequest = pCustomRequest;
|
||||
pPinImpl->stop_playback = 1;
|
||||
pPinImpl->stop_playback = TRUE;
|
||||
|
||||
InitializeCriticalSection(&pPinImpl->thread_lock);
|
||||
pPinImpl->thread_lock.DebugInfo->Spare[0] = (DWORD_PTR)( __FILE__ ": PullPin.thread_lock");
|
||||
|
@ -638,7 +638,7 @@ HRESULT PullPin_StartProcessing(PullPin * This)
|
|||
/* Wake up! */
|
||||
assert(WaitForSingleObject(This->thread_sleepy, 0) == WAIT_TIMEOUT);
|
||||
This->state = Req_Run;
|
||||
This->stop_playback = 0;
|
||||
This->stop_playback = FALSE;
|
||||
ResetEvent(This->hEventStateChanged);
|
||||
SetEvent(This->thread_sleepy);
|
||||
}
|
||||
|
@ -664,7 +664,7 @@ HRESULT PullPin_PauseProcessing(PullPin * This)
|
|||
assert(WaitForSingleObject(This->thread_sleepy, 0) == WAIT_TIMEOUT);
|
||||
|
||||
This->state = Req_Pause;
|
||||
This->stop_playback = 1;
|
||||
This->stop_playback = TRUE;
|
||||
ResetEvent(This->hEventStateChanged);
|
||||
SetEvent(This->thread_sleepy);
|
||||
|
||||
|
@ -700,7 +700,7 @@ static HRESULT PullPin_StopProcessing(PullPin * This)
|
|||
|
||||
assert(This->state == Req_Pause || This->state == Req_Sleepy);
|
||||
|
||||
This->stop_playback = 1;
|
||||
This->stop_playback = TRUE;
|
||||
This->state = Req_Die;
|
||||
assert(WaitForSingleObject(This->thread_sleepy, 0) == WAIT_TIMEOUT);
|
||||
ResetEvent(This->hEventStateChanged);
|
||||
|
|
|
@ -122,9 +122,9 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
|
|||
pin->rtCurrent = pin->rtNext;
|
||||
pin->rtNext = rtSampleStop;
|
||||
|
||||
IMediaSample_SetPreroll(newsample, 0);
|
||||
IMediaSample_SetDiscontinuity(newsample, 0);
|
||||
IMediaSample_SetSyncPoint(newsample, 1);
|
||||
IMediaSample_SetPreroll(newsample, FALSE);
|
||||
IMediaSample_SetDiscontinuity(newsample, FALSE);
|
||||
IMediaSample_SetSyncPoint(newsample, TRUE);
|
||||
|
||||
hr = IAsyncReader_Request(pin->pReader, newsample, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue