Issue #80 - De-unify dom/media part 1

This de-unifies up to and including dom/media/platforms with the exception of
dom/media/platforms/wmf, because that one throws weird errors in the Win
SDK which don't have a clear cause (yet)
This commit is contained in:
Moonchild 2020-04-22 02:32:20 +00:00 committed by Roy Tam
commit 094d4730dd
40 changed files with 79 additions and 50 deletions

View file

@ -788,6 +788,13 @@ MediaDecoder::CallSeek(const SeekTarget& aTarget, dom::Promise* aPromise)
&MediaDecoder::OnSeekResolved, &MediaDecoder::OnSeekRejected));
}
// GetCurrentTime is defined in winbase.h as a zero argument macro forwarding to
// GetTickCount(), which conflicts with the MediaDecoder::GetCurrentTime
// implementation here. Clear the macro.
#ifdef GetCurrentTime
#undef GetCurrentTime
#endif
double
MediaDecoder::GetCurrentTime()
{