Nikolay Sivov : quartz: Implement a trivial case of ConvertTimeFormat().
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 18 07:57:33 CDT 2015
Module: wine
Branch: master
Commit: 5120fa9090cecb705fb8cdd1e5cb81fcabfd3fa8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5120fa9090cecb705fb8cdd1e5cb81fcabfd3fa8
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri May 15 19:35:25 2015 +0300
quartz: Implement a trivial case of ConvertTimeFormat().
---
dlls/quartz/filtergraph.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index fcdd05b..26a4080 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -2500,8 +2500,16 @@ static HRESULT WINAPI MediaSeeking_ConvertTimeFormat(IMediaSeeking *iface, LONGL
{
IFilterGraphImpl *This = impl_from_IMediaSeeking(iface);
- FIXME("(%p/%p)->(%p, %p, 0x%s, %p): stub !!!\n", This, iface, pTarget,
- pTargetFormat, wine_dbgstr_longlong(Source), pSourceFormat);
+ TRACE("(%p/%p)->(%p, %s, 0x%s, %s)\n", This, iface, pTarget,
+ debugstr_guid(pTargetFormat), wine_dbgstr_longlong(Source), debugstr_guid(pSourceFormat));
+
+ if (!pSourceFormat)
+ pSourceFormat = &This->timeformatseek;
+
+ if (IsEqualGUID(pTargetFormat, pSourceFormat))
+ *pTarget = Source;
+ else
+ FIXME("conversion %s->%s not supported\n", debugstr_guid(pSourceFormat), debugstr_guid(pTargetFormat));
return S_OK;
}
More information about the wine-cvs
mailing list