From b51341ef54d45b84f95860a035c5d242505f5de7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 11 Jun 2017 13:36:23 -0700 Subject: [PATCH] Update to latest moonlight-common-c --- Limelight/Stream/Connection.m | 12 +++++++++++- moonlight-common/moonlight-common-c | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index 88f03b9..b053be9 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -65,7 +65,7 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit) return [renderer submitDecodeBuffer:data length:decodeUnit->fullLength]; } -int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig) +int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig, void* context, int flags) { int err; @@ -268,6 +268,14 @@ void ClDisplayTransientMessage(const char* message) [_callbacks displayTransientMessage: message]; } +void ClLogMessage(const char* format, ...) +{ + va_list va; + va_start(va, format); + vfprintf(stderr, format, va); + va_end(va); +} + -(void) terminate { // We dispatch this async to get out because this can be invoked @@ -331,6 +339,7 @@ void ClDisplayTransientMessage(const char* message) _clCallbacks.connectionTerminated = ClConnectionTerminated; _clCallbacks.displayMessage = ClDisplayMessage; _clCallbacks.displayTransientMessage = ClDisplayTransientMessage; + _clCallbacks.logMessage = ClLogMessage; return self; } @@ -424,6 +433,7 @@ static OSStatus playbackCallback(void *inRefCon, &_clCallbacks, &_drCallbacks, &_arCallbacks, + NULL, 0, NULL, 0); [initLock unlock]; } diff --git a/moonlight-common/moonlight-common-c b/moonlight-common/moonlight-common-c index c01deff..3579265 160000 --- a/moonlight-common/moonlight-common-c +++ b/moonlight-common/moonlight-common-c @@ -1 +1 @@ -Subproject commit c01deff683d9192a71f851815dbea4bba14e4f04 +Subproject commit 357926556046427aa5dda597ae73dc5a8d0d8bed