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
8b9cc79c
Commit
8b9cc79c
authored
Feb 14, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay: Implement UpdateVideo().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c8c40e97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
player.c
dlls/mfplay/player.c
+16
-2
mfplay.c
dlls/mfplay/tests/mfplay.c
+0
-3
No files found.
dlls/mfplay/player.c
View file @
8b9cc79c
...
...
@@ -1524,9 +1524,23 @@ static HRESULT WINAPI media_player_GetVideoWindow(IMFPMediaPlayer *iface, HWND *
static
HRESULT
WINAPI
media_player_UpdateVideo
(
IMFPMediaPlayer
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
struct
media_player
*
player
=
impl_from_IMFPMediaPlayer
(
iface
);
IMFVideoDisplayControl
*
display_control
;
HRESULT
hr
;
RECT
rect
;
return
E_NOTIMPL
;
TRACE
(
"%p.
\n
"
,
iface
);
if
(
SUCCEEDED
(
hr
=
media_player_get_display_control
(
player
,
&
display_control
)))
{
if
(
GetClientRect
(
player
->
output_window
,
&
rect
))
hr
=
IMFVideoDisplayControl_SetVideoPosition
(
display_control
,
NULL
,
&
rect
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMFVideoDisplayControl_RepaintVideo
(
display_control
);
IMFVideoDisplayControl_Release
(
display_control
);
}
return
hr
;
}
static
HRESULT
WINAPI
media_player_SetBorderColor
(
IMFPMediaPlayer
*
iface
,
COLORREF
color
)
...
...
dlls/mfplay/tests/mfplay.c
View file @
8b9cc79c
...
...
@@ -203,7 +203,6 @@ static void test_shutdown(void)
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_UpdateVideo
(
player
);
todo_wine
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_CreateMediaItemFromURL
(
player
,
L"url"
,
TRUE
,
0
,
&
item
);
...
...
@@ -316,7 +315,6 @@ static void test_video_control(void)
ok
(
hr
==
MF_E_INVALIDREQUEST
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_UpdateVideo
(
player
);
todo_wine
ok
(
hr
==
MF_E_INVALIDREQUEST
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFPMediaPlayer_Release
(
player
);
...
...
@@ -356,7 +354,6 @@ static void test_video_control(void)
ok
(
hr
==
MF_E_INVALIDREQUEST
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFPMediaPlayer_UpdateVideo
(
player
);
todo_wine
ok
(
hr
==
MF_E_INVALIDREQUEST
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFPMediaPlayer_Release
(
player
);
...
...
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