Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quartz: HACK: Return success from SetTimeFormat for SWAT 3. #220

Open
wants to merge 1 commit into
base: proton_8.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dlls/quartz/filtergraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,7 @@ static HRESULT WINAPI MediaSeeking_IsUsingTimeFormat(IMediaSeeking *iface, const
static HRESULT WINAPI MediaSeeking_SetTimeFormat(IMediaSeeking *iface, const GUID *pFormat)
{
struct filter_graph *This = impl_from_IMediaSeeking(iface);
const char *sgi;

if (!pFormat)
return E_POINTER;
Expand All @@ -2232,6 +2233,11 @@ static HRESULT WINAPI MediaSeeking_SetTimeFormat(IMediaSeeking *iface, const GUI
if (!IsEqualGUID(&TIME_FORMAT_MEDIA_TIME, pFormat))
{
FIXME("Unhandled time format %s\n", debugstr_guid(pFormat));

/* SWAT 3 video fix */
if ((sgi = getenv("SteamGameId")) && !strcmp(sgi, "560370"))
return S_OK;

return E_INVALIDARG;
}

Expand Down