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
b15c3985
Commit
b15c3985
authored
Jul 16, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore: Support IWMReaderTimecode interface in IWMReader.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c2f464de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletion
+53
-1
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+1
-1
wmvcore_main.c
dlls/wmvcore/wmvcore_main.c
+52
-0
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
b15c3985
...
...
@@ -124,7 +124,7 @@ static void test_wmreader_interfaces(void)
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
hr
=
IWMReader_QueryInterface
(
reader
,
&
IID_IWMReaderTimecode
,
(
void
**
)
&
timecode
);
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_IWMReaderNetworkConfig
,
(
void
**
)
&
netconfig
);
ok
(
hr
==
S_OK
,
"Failed 0x%08x
\n
"
,
hr
);
...
...
dlls/wmvcore/wmvcore_main.c
View file @
b15c3985
...
...
@@ -70,6 +70,7 @@ typedef struct {
IWMReaderNetworkConfig2
IWMReaderNetworkConfig2_iface
;
IWMReaderStreamClock
IWMReaderStreamClock_iface
;
IWMReaderTypeNegotiation
IWMReaderTypeNegotiation_iface
;
IWMReaderTimecode
IWMReaderTimecode_iface
;
LONG
ref
;
}
WMReader
;
...
...
@@ -121,6 +122,9 @@ static HRESULT WINAPI WMReader_QueryInterface(IWMReader *iface, REFIID riid, voi
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMReaderTypeNegotiation
))
{
TRACE
(
"(%p)->(IWMReaderTypeNegotiation %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMReaderTypeNegotiation_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWMReaderTimecode
))
{
TRACE
(
"(%p)->(IWMReaderTimecode %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IWMReaderTimecode_iface
;
}
else
{
*
ppv
=
NULL
;
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
...
...
@@ -1232,6 +1236,53 @@ static const IWMReaderTypeNegotiationVtbl WMReaderTypeNegotiationVtbl =
negotiation_TryOutputProps
};
static
inline
WMReader
*
impl_from_IWMReaderTimecode
(
IWMReaderTimecode
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
WMReader
,
IWMReaderTimecode_iface
);
}
static
HRESULT
WINAPI
timecode_QueryInterface
(
IWMReaderTimecode
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WMReader
*
This
=
impl_from_IWMReaderTimecode
(
iface
);
return
IWMReader_QueryInterface
(
&
This
->
IWMReader_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
timecode_AddRef
(
IWMReaderTimecode
*
iface
)
{
WMReader
*
This
=
impl_from_IWMReaderTimecode
(
iface
);
return
IWMReader_AddRef
(
&
This
->
IWMReader_iface
);
}
static
ULONG
WINAPI
timecode_Release
(
IWMReaderTimecode
*
iface
)
{
WMReader
*
This
=
impl_from_IWMReaderTimecode
(
iface
);
return
IWMReader_Release
(
&
This
->
IWMReader_iface
);
}
static
HRESULT
WINAPI
timecode_GetTimecodeRangeCount
(
IWMReaderTimecode
*
iface
,
WORD
num
,
WORD
*
count
)
{
WMReader
*
This
=
impl_from_IWMReaderTimecode
(
iface
);
FIXME
(
"%p, %d, %p
\n
"
,
This
,
num
,
count
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
timecode_GetTimecodeRangeBounds
(
IWMReaderTimecode
*
iface
,
WORD
stream
,
WORD
range
,
DWORD
*
start_timecode
,
DWORD
*
end_timecode
)
{
WMReader
*
This
=
impl_from_IWMReaderTimecode
(
iface
);
FIXME
(
"%p, %d, %d, %p, %p
\n
"
,
This
,
stream
,
range
,
start_timecode
,
end_timecode
);
return
E_NOTIMPL
;
}
static
const
IWMReaderTimecodeVtbl
WMReaderTimecodeVtbl
=
{
timecode_QueryInterface
,
timecode_AddRef
,
timecode_Release
,
timecode_GetTimecodeRangeCount
,
timecode_GetTimecodeRangeBounds
};
HRESULT
WINAPI
WMCreateReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMReader
**
ret_reader
)
{
WMReader
*
reader
;
...
...
@@ -1248,6 +1299,7 @@ HRESULT WINAPI WMCreateReader(IUnknown *reserved, DWORD rights, IWMReader **ret_
reader
->
IWMReaderNetworkConfig2_iface
.
lpVtbl
=
&
WMReaderNetworkConfig2Vtbl
;
reader
->
IWMReaderStreamClock_iface
.
lpVtbl
=
&
WMReaderStreamClockVtbl
;
reader
->
IWMReaderTypeNegotiation_iface
.
lpVtbl
=
&
WMReaderTypeNegotiationVtbl
;
reader
->
IWMReaderTimecode_iface
.
lpVtbl
=
&
WMReaderTimecodeVtbl
;
reader
->
ref
=
1
;
*
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