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
4edad993
Commit
4edad993
authored
Jun 10, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Return E_UNEXPECTED from WMReaderAdvanced2_OpenStream when already opened.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
parent
d6af590a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+7
-0
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+3
-0
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
4edad993
...
...
@@ -725,6 +725,13 @@ static HRESULT WINAPI WMReaderAdvanced2_OpenStream(IWMReaderAdvanced6 *iface,
EnterCriticalSection
(
&
reader
->
reader
.
cs
);
if
(
reader
->
reader
.
wg_parser
)
{
LeaveCriticalSection
(
&
reader
->
reader
.
cs
);
WARN
(
"Stream is already open; returning E_UNEXPECTED.
\n
"
);
return
E_UNEXPECTED
;
}
if
(
SUCCEEDED
(
hr
=
wm_reader_open_stream
(
&
reader
->
reader
,
stream
)))
open_stream
(
reader
,
callback
,
context
);
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
4edad993
...
...
@@ -2181,6 +2181,9 @@ static void test_async_reader_streaming(void)
ret
=
WaitForSingleObject
(
callback
.
got_opened
,
1000
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
hr
=
IWMReaderAdvanced2_OpenStream
(
advanced
,
&
stream
.
IStream_iface
,
&
callback
.
IWMReaderCallback_iface
,
(
void
**
)
0xdeadbee0
);
ok
(
hr
==
E_UNEXPECTED
,
"Got hr %#lx.
\n
"
,
hr
);
count
=
0xdeadbeef
;
hr
=
IWMReader_GetOutputCount
(
reader
,
&
count
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
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