Commit 4857772b authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

strmbase: Allow NULL for time format in ConvertTimeFormat.

parent 5cbc4e81
......@@ -179,6 +179,11 @@ HRESULT WINAPI SourceSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGL
HRESULT WINAPI SourceSeekingImpl_ConvertTimeFormat(IMediaSeeking * iface, LONGLONG * pTarget, const GUID * pTargetFormat, LONGLONG Source, const GUID * pSourceFormat)
{
SourceSeeking *This = (SourceSeeking *)iface;
if (!pTargetFormat)
pTargetFormat = &This->timeformat;
if (!pSourceFormat)
pSourceFormat = &This->timeformat;
if (IsEqualIID(pTargetFormat, &TIME_FORMAT_MEDIA_TIME) && IsEqualIID(pSourceFormat, &TIME_FORMAT_MEDIA_TIME))
{
*pTarget = Source;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment