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
bf461e64
Commit
bf461e64
authored
May 03, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Check whether the pin is connected in IVideoWindow::put_Caption().
Ferro CCTV calls this.
parent
7eaac918
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
videorenderer.c
dlls/quartz/tests/videorenderer.c
+5
-0
vmr7.c
dlls/quartz/tests/vmr7.c
+5
-0
vmr9.c
dlls/quartz/tests/vmr9.c
+5
-0
window.c
dlls/quartz/window.c
+3
-0
No files found.
dlls/quartz/tests/videorenderer.c
View file @
bf461e64
...
@@ -2379,6 +2379,11 @@ static void test_video_window(void)
...
@@ -2379,6 +2379,11 @@ static void test_video_window(void)
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
caption
=
SysAllocString
(
L"foo"
);
hr
=
IVideoWindow_put_Caption
(
window
,
caption
);
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
SysFreeString
(
caption
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
dlls/quartz/tests/vmr7.c
View file @
bf461e64
...
@@ -2378,6 +2378,11 @@ static void test_video_window(void)
...
@@ -2378,6 +2378,11 @@ static void test_video_window(void)
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
caption
=
SysAllocString
(
L"foo"
);
hr
=
IVideoWindow_put_Caption
(
window
,
caption
);
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
SysFreeString
(
caption
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
dlls/quartz/tests/vmr9.c
View file @
bf461e64
...
@@ -2604,6 +2604,11 @@ static void test_video_window(void)
...
@@ -2604,6 +2604,11 @@ static void test_video_window(void)
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
hr
=
IVideoWindow_get_Caption
(
window
,
&
caption
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
caption
=
SysAllocString
(
L"foo"
);
hr
=
IVideoWindow_put_Caption
(
window
,
caption
);
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
SysFreeString
(
caption
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
hr
=
IVideoWindow_get_WindowStyle
(
window
,
&
l
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
hr
==
VFW_E_NOT_CONNECTED
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
dlls/quartz/window.c
View file @
bf461e64
...
@@ -194,6 +194,9 @@ HRESULT WINAPI BaseControlWindowImpl_put_Caption(IVideoWindow *iface, BSTR capti
...
@@ -194,6 +194,9 @@ HRESULT WINAPI BaseControlWindowImpl_put_Caption(IVideoWindow *iface, BSTR capti
TRACE
(
"window %p, caption %s.
\n
"
,
window
,
debugstr_w
(
caption
));
TRACE
(
"window %p, caption %s.
\n
"
,
window
,
debugstr_w
(
caption
));
if
(
!
window
->
pPin
->
peer
)
return
VFW_E_NOT_CONNECTED
;
if
(
!
SetWindowTextW
(
window
->
hwnd
,
caption
))
if
(
!
SetWindowTextW
(
window
->
hwnd
,
caption
))
return
E_FAIL
;
return
E_FAIL
;
...
...
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