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
86557b9e
Commit
86557b9e
authored
Mar 19, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fallback to InitializeCriticalSection() if…
strmbase: Fallback to InitializeCriticalSection() if RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO is unsupported.
parent
525ef1bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
filter.c
libs/strmbase/filter.c
+4
-2
pospass.c
libs/strmbase/pospass.c
+2
-1
seeking.c
libs/strmbase/seeking.c
+2
-1
No files found.
libs/strmbase/filter.c
View file @
86557b9e
...
...
@@ -524,10 +524,12 @@ void strmbase_filter_init(struct strmbase_filter *filter, IUnknown *outer,
filter
->
outer_unk
=
outer
?
outer
:
&
filter
->
IUnknown_inner
;
filter
->
refcount
=
1
;
InitializeCriticalSectionEx
(
&
filter
->
filter_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
if
(
!
InitializeCriticalSectionEx
(
&
filter
->
filter_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
))
InitializeCriticalSection
(
&
filter
->
filter_cs
);
if
(
filter
->
filter_cs
.
DebugInfo
!=
(
RTL_CRITICAL_SECTION_DEBUG
*
)
-
1
)
filter
->
filter_cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": strmbase_filter.filter_cs"
);
InitializeCriticalSectionEx
(
&
filter
->
stream_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
if
(
!
InitializeCriticalSectionEx
(
&
filter
->
stream_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
))
InitializeCriticalSection
(
&
filter
->
stream_cs
);
if
(
filter
->
stream_cs
.
DebugInfo
!=
(
RTL_CRITICAL_SECTION_DEBUG
*
)
-
1
)
filter
->
stream_cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": strmbase_filter.stream_cs"
);
filter
->
clsid
=
*
clsid
;
...
...
libs/strmbase/pospass.c
View file @
86557b9e
...
...
@@ -730,7 +730,8 @@ void strmbase_passthrough_init(struct strmbase_passthrough *passthrough, IUnknow
passthrough
->
IMediaPosition_iface
.
lpVtbl
=
&
IMediaPositionPassThru_Vtbl
;
passthrough
->
IMediaSeeking_iface
.
lpVtbl
=
&
IMediaSeekingPassThru_Vtbl
;
passthrough
->
ISeekingPassThru_iface
.
lpVtbl
=
&
ISeekingPassThru_Vtbl
;
InitializeCriticalSectionEx
(
&
passthrough
->
time_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
if
(
!
InitializeCriticalSectionEx
(
&
passthrough
->
time_cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
))
InitializeCriticalSection
(
&
passthrough
->
time_cs
);
passthrough
->
time_cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": strmbase_passthrough.time_cs"
);
}
...
...
libs/strmbase/seeking.c
View file @
86557b9e
...
...
@@ -49,7 +49,8 @@ HRESULT strmbase_seeking_init(SourceSeeking *pSeeking, const IMediaSeekingVtbl *
pSeeking
->
llDuration
=
pSeeking
->
llStop
;
pSeeking
->
dRate
=
1
.
0
;
pSeeking
->
timeformat
=
TIME_FORMAT_MEDIA_TIME
;
InitializeCriticalSectionEx
(
&
pSeeking
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
if
(
!
InitializeCriticalSectionEx
(
&
pSeeking
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
))
InitializeCriticalSection
(
&
pSeeking
->
cs
);
pSeeking
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": SourceSeeking.cs"
);
return
S_OK
;
}
...
...
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