Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e4823f9b
Commit
e4823f9b
authored
Sep 12, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Sep 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use boolean constants for BOOL.
parent
6e51cfdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
mpegsplit.c
dlls/quartz/mpegsplit.c
+5
-5
pin.c
dlls/quartz/pin.c
+4
-4
waveparser.c
dlls/quartz/waveparser.c
+3
-3
No files found.
dlls/quartz/mpegsplit.c
View file @
e4823f9b
...
...
@@ -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
;
...
...
dlls/quartz/pin.c
View file @
e4823f9b
...
...
@@ -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
);
...
...
dlls/quartz/waveparser.c
View file @
e4823f9b
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment