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
998fe046
Commit
998fe046
authored
Jul 23, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore: Support IWMPacketSize2 interfaces in IWMReader.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0570cf9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
2 deletions
+72
-2
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+2
-2
wmvcore_main.c
dlls/wmvcore/wmvcore_main.c
+70
-0
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
998fe046
...
@@ -118,10 +118,10 @@ static void test_wmreader_interfaces(void)
...
@@ -118,10 +118,10 @@ static void test_wmreader_interfaces(void)
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMPacketSize
,
(
void
**
)
&
packet
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMPacketSize
,
(
void
**
)
&
packet
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMPacketSize2
,
(
void
**
)
&
packet2
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMPacketSize2
,
(
void
**
)
&
packet2
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMReaderAccelerator
,
(
void
**
)
&
accel
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMReaderAccelerator
,
(
void
**
)
&
accel
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
...
...
dlls/wmvcore/wmvcore_main.c
View file @
998fe046
...
@@ -76,6 +76,7 @@ typedef struct {
...
@@ -76,6 +76,7 @@ typedef struct {
IWMLanguageList
IWMLanguageList_iface
;
IWMLanguageList
IWMLanguageList_iface
;
IReferenceClock
IReferenceClock_iface
;
IReferenceClock
IReferenceClock_iface
;
IWMProfile3
IWMProfile3_iface
;
IWMProfile3
IWMProfile3_iface
;
IWMPacketSize2
IWMPacketSize2_iface
;
LONG
ref
;
LONG
ref
;
}
WMReader
;
}
WMReader
;
...
@@ -157,6 +158,12 @@ static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, voi
...
@@ -157,6 +158,12 @@ static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, voi
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMProfile3
))
{
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMProfile3
))
{
TRACE
(
"(%p)->(IWMProfile3 %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IWMProfile3 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMProfile3_iface
;
*
ppv
=
&
This
->
IWMProfile3_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPacketSize
))
{
TRACE
(
"(%p)->(IWMPacketSize %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPacketSize2_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMPacketSize2
))
{
TRACE
(
"(%p)->(IWMPacketSize2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMPacketSize2_iface
;
}
else
{
}
else
{
*
ppv
=
NULL
;
*
ppv
=
NULL
;
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
...
@@ -1999,6 +2006,68 @@ static const IWMProfile3Vtbl WMProfile3Vtbl =
...
@@ -1999,6 +2006,68 @@ static const IWMProfile3Vtbl WMProfile3Vtbl =
profile3_GetExpectedPacketCount
profile3_GetExpectedPacketCount
};
};
static
inline
WMReader
*
impl_from_IWMPacketSize2
(
IWMPacketSize2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
WMReader
,
IWMPacketSize2_iface
);
}
static
HRESULT
WINAPI
packetsize_QueryInterface
(
IWMPacketSize2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
return
IWMReader_QueryInterface
(
&
This
->
IWMReader_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
packetsize_AddRef
(
IWMPacketSize2
*
iface
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
return
IWMReader_AddRef
(
&
This
->
IWMReader_iface
);
}
static
ULONG
WINAPI
packetsize_Release
(
IWMPacketSize2
*
iface
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
return
IWMReader_Release
(
&
This
->
IWMReader_iface
);
}
static
HRESULT
WINAPI
packetsize_GetMaxPacketSize
(
IWMPacketSize2
*
iface
,
DWORD
*
size
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
FIXME
(
"%p, %p
\n
"
,
This
,
size
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
packetsize_SetMaxPacketSize
(
IWMPacketSize2
*
iface
,
DWORD
size
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
FIXME
(
"%p, %d
\n
"
,
This
,
size
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
packetsize_GetMinPacketSize
(
IWMPacketSize2
*
iface
,
DWORD
*
size
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
FIXME
(
"%p, %p
\n
"
,
This
,
size
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
packetsize_SetMinPacketSize
(
IWMPacketSize2
*
iface
,
DWORD
size
)
{
WMReader
*
This
=
impl_from_IWMPacketSize2
(
iface
);
FIXME
(
"%p, %d
\n
"
,
This
,
size
);
return
E_NOTIMPL
;
}
static
const
IWMPacketSize2Vtbl
WMPacketSize2Vtbl
=
{
packetsize_QueryInterface
,
packetsize_AddRef
,
packetsize_Release
,
packetsize_GetMaxPacketSize
,
packetsize_SetMaxPacketSize
,
packetsize_GetMinPacketSize
,
packetsize_SetMinPacketSize
};
HRESULT
WINAPI
WMCreateReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMReader
**
ret_reader
)
HRESULT
WINAPI
WMCreateReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMReader
**
ret_reader
)
{
{
WMReader
*
reader
;
WMReader
*
reader
;
...
@@ -2021,6 +2090,7 @@ HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_
...
@@ -2021,6 +2090,7 @@ HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_
reader
->
IWMLanguageList_iface
.
lpVtbl
=
&
WMLanguageListVtbl
;
reader
->
IWMLanguageList_iface
.
lpVtbl
=
&
WMLanguageListVtbl
;
reader
->
IReferenceClock_iface
.
lpVtbl
=
&
ReferenceClockVtbl
;
reader
->
IReferenceClock_iface
.
lpVtbl
=
&
ReferenceClockVtbl
;
reader
->
IWMProfile3_iface
.
lpVtbl
=
&
WMProfile3Vtbl
;
reader
->
IWMProfile3_iface
.
lpVtbl
=
&
WMProfile3Vtbl
;
reader
->
IWMPacketSize2_iface
.
lpVtbl
=
&
WMPacketSize2Vtbl
;
reader
->
ref
=
1
;
reader
->
ref
=
1
;
*
ret_reader
=
&
reader
->
IWMReader_iface
;
*
ret_reader
=
&
reader
->
IWMReader_iface
;
...
...
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