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
2a83ef07
Commit
2a83ef07
authored
May 23, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement GetInputStatus for WMV decoder DMO.
parent
b7e4b524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
transform.c
dlls/mf/tests/transform.c
+0
-7
wmv_decoder.c
dlls/winegstreamer/wmv_decoder.c
+10
-2
No files found.
dlls/mf/tests/transform.c
View file @
2a83ef07
...
...
@@ -5580,23 +5580,18 @@ static void test_wmv_decoder_media_object(void)
/* Test GetInputStatus. */
hr
=
IMediaObject_GetInputStatus
(
media_object
,
0xdeadbeef
,
NULL
);
todo_wine
ok
(
hr
==
DMO_E_INVALIDSTREAMINDEX
,
"GetInputStatus returned %#lx.
\n
"
,
hr
);
status
=
0xdeadbeef
;
hr
=
IMediaObject_GetInputStatus
(
media_object
,
0xdeadbeef
,
&
status
);
todo_wine
ok
(
hr
==
DMO_E_INVALIDSTREAMINDEX
,
"GetInputStatus returned %#lx.
\n
"
,
hr
);
ok
(
status
==
0xdeadbeef
,
"Unexpected status %#lx.
\n
"
,
status
);
hr
=
IMediaObject_GetInputStatus
(
media_object
,
0
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetInputStatus returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetInputStatus
(
media_object
,
0
,
&
status
);
todo_wine
ok
(
hr
==
S_OK
,
"GetInputStatus returned %#lx.
\n
"
,
hr
);
todo_wine
ok
(
status
==
DMO_INPUT_STATUSF_ACCEPT_DATA
,
"Unexpected status %#lx.
\n
"
,
status
);
/* Test Discontinuity. */
...
...
@@ -5610,9 +5605,7 @@ static void test_wmv_decoder_media_object(void)
todo_wine
ok
(
hr
==
S_OK
,
"Discontinuity returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetInputStatus
(
media_object
,
0
,
&
status
);
todo_wine
ok
(
hr
==
S_OK
,
"GetInputStatus returned %#lx.
\n
"
,
hr
);
todo_wine
ok
(
status
==
DMO_INPUT_STATUSF_ACCEPT_DATA
,
"Unexpected status %#lx.
\n
"
,
status
);
/* Test Flush. */
...
...
dlls/winegstreamer/wmv_decoder.c
View file @
2a83ef07
...
...
@@ -680,8 +680,16 @@ static HRESULT WINAPI media_object_FreeStreamingResources(IMediaObject *iface)
static
HRESULT
WINAPI
media_object_GetInputStatus
(
IMediaObject
*
iface
,
DWORD
index
,
DWORD
*
flags
)
{
FIXME
(
"iface %p, index %lu, flags %p stub!
\n
"
,
iface
,
index
,
flags
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, index %lu, flags %p.
\n
"
,
iface
,
index
,
flags
);
if
(
index
>
0
)
return
DMO_E_INVALIDSTREAMINDEX
;
if
(
!
flags
)
return
E_POINTER
;
*
flags
=
DMO_INPUT_STATUSF_ACCEPT_DATA
;
return
S_OK
;
}
static
HRESULT
WINAPI
media_object_ProcessInput
(
IMediaObject
*
iface
,
DWORD
index
,
...
...
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