Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8e3f316c
Commit
8e3f316c
authored
Jun 14, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
Jun 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement Flush for WMV decoder DMO.
parent
f19a0fb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
transform.c
dlls/mf/tests/transform.c
+0
-3
wmv_decoder.c
dlls/winegstreamer/wmv_decoder.c
+11
-2
No files found.
dlls/mf/tests/transform.c
View file @
8e3f316c
...
...
@@ -6392,10 +6392,8 @@ static void test_wmv_decoder_media_object(void)
hr
=
IMediaObject_ProcessInput
(
media_object
,
0
,
&
input_media_buffer
->
IMediaBuffer_iface
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"ProcessInput returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_Flush
(
media_object
);
todo_wine
ok
(
hr
==
S_OK
,
"Flush returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_Flush
(
media_object
);
todo_wine
ok
(
hr
==
S_OK
,
"Flush returned %#lx.
\n
"
,
hr
);
output_media_buffer
->
length
=
0
;
output_data_buffer
.
pBuffer
=
&
output_media_buffer
->
IMediaBuffer_iface
;
...
...
@@ -6405,7 +6403,6 @@ static void test_wmv_decoder_media_object(void)
hr
=
IMediaObject_ProcessOutput
(
media_object
,
0
,
1
,
&
output_data_buffer
,
&
status
);
todo_wine
ok
(
hr
==
S_FALSE
,
"ProcessOutput returned %#lx.
\n
"
,
hr
);
todo_wine
ok
(
output_media_buffer
->
length
==
0
,
"Unexpected length %#lx.
\n
"
,
output_media_buffer
->
length
);
/* Test ProcessOutput with setting framerate. */
...
...
dlls/winegstreamer/wmv_decoder.c
View file @
8e3f316c
...
...
@@ -657,8 +657,17 @@ static HRESULT WINAPI media_object_SetInputMaxLatency(IMediaObject *iface, DWORD
static
HRESULT
WINAPI
media_object_Flush
(
IMediaObject
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
struct
wmv_decoder
*
decoder
=
impl_from_IMediaObject
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p.
\n
"
,
iface
);
if
(
FAILED
(
hr
=
wg_transform_flush
(
decoder
->
wg_transform
)))
return
hr
;
wg_sample_queue_flush
(
decoder
->
wg_sample_queue
,
TRUE
);
return
S_OK
;
}
static
HRESULT
WINAPI
media_object_Discontinuity
(
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