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
d54b1945
Commit
d54b1945
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 NS_E_INVALID_REQUEST on WMReader Start before Open.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
parent
001d78a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+7
-0
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+2
-0
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
d54b1945
...
...
@@ -318,6 +318,13 @@ static HRESULT WINAPI WMReader_Start(IWMReader *iface,
EnterCriticalSection
(
&
reader
->
reader
.
cs
);
if
(
!
reader
->
reader
.
wg_parser
)
{
LeaveCriticalSection
(
&
reader
->
reader
.
cs
);
WARN
(
"No stream is open; returning NS_E_INVALID_REQUEST.
\n
"
);
return
NS_E_INVALID_REQUEST
;
}
stop_streaming
(
reader
);
IWMReaderCallback_OnStatus
(
reader
->
callback
,
WMT_STARTED
,
S_OK
,
WMT_TYPE_DWORD
,
(
BYTE
*
)
&
zero
,
context
);
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
d54b1945
...
...
@@ -2171,6 +2171,8 @@ static void test_async_reader_streaming(void)
hr
=
IWMReader_Stop
(
reader
);
ok
(
hr
==
E_UNEXPECTED
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IWMReader_Start
(
reader
,
0
,
0
,
1
.
0
,
NULL
);
ok
(
hr
==
NS_E_INVALID_REQUEST
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IWMReaderAdvanced2_OpenStream
(
advanced
,
&
stream
.
IStream_iface
,
&
callback
.
IWMReaderCallback_iface
,
(
void
**
)
0xdeadbeef
);
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