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
44827a03
Commit
44827a03
authored
May 17, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement IBasicVideo get_AvgTimePerFrame.
parent
a0152bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
videorenderer.c
dlls/quartz/videorenderer.c
+16
-1
No files found.
dlls/quartz/videorenderer.c
View file @
44827a03
...
...
@@ -1176,10 +1176,25 @@ static HRESULT WINAPI Basicvideo_Invoke(IBasicVideo *iface,
/*** IBasicVideo methods ***/
static
HRESULT
WINAPI
Basicvideo_get_AvgTimePerFrame
(
IBasicVideo
*
iface
,
REFTIME
*
pAvgTimePerFrame
)
{
AM_MEDIA_TYPE
*
pmt
;
ICOM_THIS_MULTI
(
VideoRendererImpl
,
IBasicVideo_vtbl
,
iface
);
FIXME
(
"(%p/%p)->(%p): stub !!!
\n
"
,
This
,
iface
,
pAvgTimePerFrame
);
if
(
!
This
->
pInputPin
->
pin
.
pConnectedTo
)
return
VFW_E_NOT_CONNECTED
;
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
pAvgTimePerFrame
);
pmt
=
&
This
->
pInputPin
->
pin
.
mtCurrent
;
if
(
IsEqualIID
(
&
pmt
->
formattype
,
&
FORMAT_VideoInfo
))
{
VIDEOINFOHEADER
*
vih
=
(
VIDEOINFOHEADER
*
)
pmt
->
pbFormat
;
*
pAvgTimePerFrame
=
vih
->
AvgTimePerFrame
;
}
else
if
(
IsEqualIID
(
&
pmt
->
formattype
,
&
FORMAT_VideoInfo2
))
{
VIDEOINFOHEADER2
*
vih
=
(
VIDEOINFOHEADER2
*
)
pmt
->
pbFormat
;
*
pAvgTimePerFrame
=
vih
->
AvgTimePerFrame
;
}
else
{
ERR
(
"Unknown format type %s
\n
"
,
qzdebugstr_guid
(
&
pmt
->
formattype
));
*
pAvgTimePerFrame
=
0
;
}
return
S_OK
;
}
...
...
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