diff --git a/Limelight/Stream/VideoDecoderRenderer.m b/Limelight/Stream/VideoDecoderRenderer.m index a2adf08..5c89e5a 100644 --- a/Limelight/Stream/VideoDecoderRenderer.m +++ b/Limelight/Stream/VideoDecoderRenderer.m @@ -580,7 +580,7 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit); CMSampleBufferRef sampleBuffer; - CMSampleTimingInfo sampleTiming = {kCMTimeInvalid, CMTimeMake(du->presentationTimeMs, 1000), kCMTimeInvalid}; + CMSampleTimingInfo sampleTiming = {kCMTimeInvalid, CMTimeMake(du->presentationTimeUs, 1000000), kCMTimeInvalid}; status = CMSampleBufferCreateReady(kCFAllocatorDefault, frameBlockBuffer, diff --git a/moonlight-common/moonlight-common-c b/moonlight-common/moonlight-common-c index 48d7f1a..f900dd4 160000 --- a/moonlight-common/moonlight-common-c +++ b/moonlight-common/moonlight-common-c @@ -1 +1 @@ -Subproject commit 48d7f1ace168d07dad339718f1350979545f15d2 +Subproject commit f900dd4767759c7b9d0e93bcea666b55c69ea62f diff --git a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj index 4de2c5f..dadda71 100644 --- a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj +++ b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj @@ -9,7 +9,12 @@ /* Begin PBXBuildFile section */ 983091DE24CEB69B00A0835D /* ConnectionTester.c in Sources */ = {isa = PBXBuildFile; fileRef = 983091DD24CEB69B00A0835D /* ConnectionTester.c */; }; 983091DF24CEB69B00A0835D /* ConnectionTester.c in Sources */ = {isa = PBXBuildFile; fileRef = 983091DD24CEB69B00A0835D /* ConnectionTester.c */; }; - 9857AEF01EBE85E10084F99E /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEEE1EBE85E10084F99E /* rs.c */; }; + 9857AF051EBE85E10084F99E /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF011EBE85E10084F99E /* rs.c */; }; + 9857AF061EBE85E10084F99E /* oblas_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF031EBE85E10084F99E /* oblas_common.c */; }; + 9857AF071EBE85E10084F99E /* oblas_lite.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF041EBE85E10084F99E /* oblas_lite.c */; }; + 9857AF081EBE85E10084F99E /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF011EBE85E10084F99E /* rs.c */; }; + 9857AF091EBE85E10084F99E /* oblas_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF031EBE85E10084F99E /* oblas_common.c */; }; + 9857AF0A1EBE85E10084F99E /* oblas_lite.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AF041EBE85E10084F99E /* oblas_lite.c */; }; 98AB2E401CAD425A0089BB98 /* AudioStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1A1CAD423B0089BB98 /* AudioStream.c */; }; 98AB2E411CAD425A0089BB98 /* ByteBuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */; }; 98AB2E421CAD425A0089BB98 /* Connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1D1CAD423B0089BB98 /* Connection.c */; }; @@ -44,7 +49,6 @@ 98F145382667D847004018E3 /* RtpVideoQueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 98F145342667D847004018E3 /* RtpVideoQueue.c */; }; F74BEF9F2C1A707200224667 /* OpenSSL in Frameworks */ = {isa = PBXBuildFile; productRef = F74BEF9E2C1A707200224667 /* OpenSSL */; }; F74BEFA22C1A80D000224667 /* OpenSSL in Frameworks */ = {isa = PBXBuildFile; productRef = F74BEFA12C1A80D000224667 /* OpenSSL */; }; - FB1A67F821324F4900507771 /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEEE1EBE85E10084F99E /* rs.c */; }; FB1A67FA21324F4900507771 /* AudioStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1A1CAD423B0089BB98 /* AudioStream.c */; }; FB1A67FB21324F4900507771 /* ByteBuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */; }; FB1A67FC21324F4900507771 /* Connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1D1CAD423B0089BB98 /* Connection.c */; }; @@ -85,8 +89,10 @@ /* Begin PBXFileReference section */ 983091DD24CEB69B00A0835D /* ConnectionTester.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ConnectionTester.c; sourceTree = ""; }; - 9857AEEE1EBE85E10084F99E /* rs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rs.c; path = "moonlight-common-c/reedsolomon/rs.c"; sourceTree = ""; }; - 9857AEEF1EBE85E10084F99E /* rs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = rs.h; path = "moonlight-common-c/reedsolomon/rs.h"; sourceTree = ""; }; + 9857AF011EBE85E10084F99E /* rs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rs.c; path = "moonlight-common-c/nanors/rs.c"; sourceTree = ""; }; + 9857AF021EBE85E10084F99E /* rs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = rs.h; path = "moonlight-common-c/nanors/rs.h"; sourceTree = ""; }; + 9857AF031EBE85E10084F99E /* oblas_common.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = oblas_common.c; path = "moonlight-common-c/nanors/deps/obl/oblas_common.c"; sourceTree = ""; }; + 9857AF041EBE85E10084F99E /* oblas_lite.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = oblas_lite.c; path = "moonlight-common-c/nanors/deps/obl/oblas_lite.c"; sourceTree = ""; }; 98AB2DF01CAD422B0089BB98 /* callbacks.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = callbacks.c; sourceTree = ""; }; 98AB2DF11CAD422B0089BB98 /* ChangeLog */ = {isa = PBXFileReference; lastKnownFileType = text; path = ChangeLog; sourceTree = ""; }; 98AB2DF21CAD422B0089BB98 /* CMakeLists.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = ""; }; @@ -180,13 +186,15 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 9857AEED1EBE85D50084F99E /* reedsolomon */ = { + 9857AF001EBE85D50084F99E /* nanors */ = { isa = PBXGroup; children = ( - 9857AEEE1EBE85E10084F99E /* rs.c */, - 9857AEEF1EBE85E10084F99E /* rs.h */, + 9857AF011EBE85E10084F99E /* rs.c */, + 9857AF021EBE85E10084F99E /* rs.h */, + 9857AF031EBE85E10084F99E /* oblas_common.c */, + 9857AF041EBE85E10084F99E /* oblas_lite.c */, ); - name = reedsolomon; + name = nanors; sourceTree = ""; }; 98AB2DEF1CAD422B0089BB98 /* enet */ = { @@ -310,7 +318,7 @@ FB290E2519B37A4E004C83CF = { isa = PBXGroup; children = ( - 9857AEED1EBE85D50084F99E /* reedsolomon */, + 9857AF001EBE85D50084F99E /* nanors */, 98AB2E191CAD423B0089BB98 /* src */, 98AB2DEF1CAD422B0089BB98 /* enet */, FB290E2F19B37A4E004C83CF /* Products */, @@ -411,7 +419,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - FB1A67F821324F4900507771 /* rs.c in Sources */, + 9857AF081EBE85E10084F99E /* rs.c in Sources */, + 9857AF091EBE85E10084F99E /* oblas_common.c in Sources */, + 9857AF0A1EBE85E10084F99E /* oblas_lite.c in Sources */, 98F145362667D847004018E3 /* RtpAudioQueue.c in Sources */, FB1A67FA21324F4900507771 /* AudioStream.c in Sources */, FB1A67FB21324F4900507771 /* ByteBuffer.c in Sources */, @@ -448,6 +458,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9857AF051EBE85E10084F99E /* rs.c in Sources */, + 9857AF061EBE85E10084F99E /* oblas_common.c in Sources */, + 9857AF071EBE85E10084F99E /* oblas_lite.c in Sources */, 98C1FC142184124C0023FDDF /* SimpleStun.c in Sources */, 98F145352667D847004018E3 /* RtpAudioQueue.c in Sources */, 98AB2E401CAD425A0089BB98 /* AudioStream.c in Sources */, @@ -475,7 +488,6 @@ 98AB2E541CAD427A0089BB98 /* packet.c in Sources */, 98AB2E551CAD427A0089BB98 /* peer.c in Sources */, 98AB2E561CAD427A0089BB98 /* protocol.c in Sources */, - 9857AEF01EBE85E10084F99E /* rs.c in Sources */, 98AB2E571CAD427A0089BB98 /* unix.c in Sources */, 98AB2E581CAD427A0089BB98 /* win32.c in Sources */, ); @@ -500,7 +512,8 @@ GCC_C_LANGUAGE_STANDARD = gnu11; HEADER_SEARCH_PATHS = ( "moonlight-common-c/enet/include", - "../libs/**", + "moonlight-common-c/nanors", + "moonlight-common-c/nanors/deps/obl", ); MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MTL_ENABLE_DEBUG_INFO = YES; @@ -530,7 +543,8 @@ GCC_C_LANGUAGE_STANDARD = gnu11; HEADER_SEARCH_PATHS = ( "moonlight-common-c/enet/include", - "../libs/**", + "moonlight-common-c/nanors", + "moonlight-common-c/nanors/deps/obl", ); MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MTL_ENABLE_DEBUG_INFO = NO; @@ -676,7 +690,8 @@ EXECUTABLE_PREFIX = lib; HEADER_SEARCH_PATHS = ( "moonlight-common-c/enet/include", - "../libs/**", + "moonlight-common-c/nanors", + "moonlight-common-c/nanors/deps/obl", ); IPHONEOS_DEPLOYMENT_TARGET = 15.0; MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; @@ -694,7 +709,8 @@ EXECUTABLE_PREFIX = lib; HEADER_SEARCH_PATHS = ( "moonlight-common-c/enet/include", - "../libs/**", + "moonlight-common-c/nanors", + "moonlight-common-c/nanors/deps/obl", ); IPHONEOS_DEPLOYMENT_TARGET = 15.0; MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";