mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1920740 - Correct SetFrameRate setting r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D222556
This commit is contained in:
parent
beccd15d80
commit
bab059d6fa
@ -110,7 +110,7 @@ static bool SetBitrateAndMode(VTCompressionSessionRef& aSession,
|
||||
|
||||
static bool SetFrameRate(VTCompressionSessionRef& aSession, int64_t aFPS) {
|
||||
AutoCFRelease<CFNumberRef> framerate(
|
||||
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &framerate));
|
||||
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &aFPS));
|
||||
return VTSessionSetProperty(aSession,
|
||||
kVTCompressionPropertyKey_ExpectedFrameRate,
|
||||
framerate) == noErr;
|
||||
|
Loading…
Reference in New Issue
Block a user