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
fad521f5
Commit
fad521f5
authored
Jun 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use the type info cache for IVideoWindow.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
384d3a45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
23 deletions
+32
-23
window.c
dlls/strmbase/window.c
+32
-22
strmbase.h
include/wine/strmbase.h
+0
-1
No files found.
dlls/strmbase/window.c
View file @
fad521f5
...
...
@@ -200,7 +200,6 @@ HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *pControlWindow, const I
hr
=
BaseWindow_Init
(
&
pControlWindow
->
baseWindow
,
pFuncsTable
);
if
(
SUCCEEDED
(
hr
))
{
BaseDispatch_Init
(
&
pControlWindow
->
baseDispatch
,
&
IID_IVideoWindow
);
pControlWindow
->
IVideoWindow_iface
.
lpVtbl
=
lpVtbl
;
pControlWindow
->
AutoShow
=
TRUE
;
pControlWindow
->
hwndDrain
=
NULL
;
...
...
@@ -215,43 +214,54 @@ HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *pControlWindow, const I
HRESULT
WINAPI
BaseControlWindow_Destroy
(
BaseControlWindow
*
pControlWindow
)
{
BaseWindowImpl_DoneWithWindow
(
&
pControlWindow
->
baseWindow
);
return
BaseDispatch_Destroy
(
&
pControlWindow
->
baseDispatch
)
;
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfoCount
(
IVideoWindow
*
iface
,
UINT
*
pctinfo
)
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfoCount
(
IVideoWindow
*
iface
,
UINT
*
count
)
{
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
);
return
BaseDispatchImpl_GetTypeInfoCount
(
&
This
->
baseDispatch
,
pctinfo
)
;
TRACE
(
"iface %p, count %p.
\n
"
,
iface
,
count
);
*
count
=
1
;
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfo
(
IVideoWindow
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
HRESULT
WINAPI
BaseControlWindowImpl_GetTypeInfo
(
IVideoWindow
*
iface
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
typeinfo
)
{
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
);
return
BaseDispatchImpl_GetTypeInfo
(
&
This
->
baseDispatch
,
&
IID_NULL
,
iTInfo
,
lcid
,
ppTInfo
);
TRACE
(
"iface %p, index %u, lcid %#x, typeinfo %p.
\n
"
,
iface
,
index
,
lcid
,
typeinfo
);
return
strmbase_get_typeinfo
(
IVideoWindow_tid
,
typeinfo
);
}
HRESULT
WINAPI
BaseControlWindowImpl_GetIDsOfNames
(
IVideoWindow
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
);
HRESULT
WINAPI
BaseControlWindowImpl_GetIDsOfNames
(
IVideoWindow
*
iface
,
REFIID
iid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
ids
)
{
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
return
BaseDispatchImpl_GetIDsOfNames
(
&
This
->
baseDispatch
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
TRACE
(
"iface %p, iid %s, names %p, count %u, lcid %#x, ids %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
names
,
count
,
lcid
,
ids
);
if
(
SUCCEEDED
(
hr
=
strmbase_get_typeinfo
(
IVideoWindow_tid
,
&
typeinfo
)))
{
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
names
,
count
,
ids
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
HRESULT
WINAPI
BaseControlWindowImpl_Invoke
(
IVideoWindow
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExepInfo
,
UINT
*
puArgErr
)
HRESULT
WINAPI
BaseControlWindowImpl_Invoke
(
IVideoWindow
*
iface
,
DISPID
id
,
REFIID
iid
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
result
,
EXCEPINFO
*
excepinfo
,
UINT
*
error_arg
)
{
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
);
ITypeInfo
*
pTypeInfo
;
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
hr
=
BaseDispatchImpl_GetTypeInfo
(
&
This
->
baseDispatch
,
riid
,
1
,
lcid
,
&
pTypeInfo
);
if
(
SUCCEEDED
(
hr
))
TRACE
(
"iface %p, id %d, iid %s, lcid %#x, flags %#x, params %p, result %p, excepinfo %p, error_arg %p.
\n
"
,
iface
,
id
,
debugstr_guid
(
iid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
error_arg
);
if
(
SUCCEEDED
(
hr
=
strmbase_get_typeinfo
(
IVideoWindow_tid
,
&
typeinfo
)))
{
hr
=
ITypeInfo_Invoke
(
pTypeInfo
,
&
This
->
IVideoWindow_iface
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
ITypeInfo_Release
(
pTypeI
nfo
);
hr
=
ITypeInfo_Invoke
(
typeinfo
,
iface
,
id
,
flags
,
params
,
result
,
excepinfo
,
error_arg
);
ITypeInfo_Release
(
typei
nfo
);
}
return
hr
;
}
...
...
include/wine/strmbase.h
View file @
fad521f5
...
...
@@ -421,7 +421,6 @@ typedef struct tagBaseControlWindow
{
BaseWindow
baseWindow
;
IVideoWindow
IVideoWindow_iface
;
BaseDispatch
baseDispatch
;
BOOL
AutoShow
;
HWND
hwndDrain
;
...
...
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