diff --git a/limelight-common/Connection.c b/limelight-common/Connection.c index 2375f10..e393944 100644 --- a/limelight-common/Connection.c +++ b/limelight-common/Connection.c @@ -50,7 +50,7 @@ void LiStopConnection(void) { LC_ASSERT(stage == STAGE_NONE); } -int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks) { +int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks, void* renderContext, int drFlags) { int err; Limelog("Initializing platform..."); @@ -100,7 +100,7 @@ int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECO Limelog("done\n"); Limelog("Starting video stream..."); - err = startVideoStream(NULL, 0); + err = startVideoStream(renderContext, drFlags); if (err != 0) { Limelog("Video stream start failed: %d\n", err); goto Cleanup; diff --git a/limelight-common/Limelight.h b/limelight-common/Limelight.h index 7a1a2ef..93a14db 100644 --- a/limelight-common/Limelight.h +++ b/limelight-common/Limelight.h @@ -37,7 +37,7 @@ typedef struct _DECODER_RENDERER_CALLBACKS { DecoderRendererSubmitDecodeUnit submitDecodeUnit; } DECODER_RENDERER_CALLBACKS, *PDECODER_RENDERER_CALLBACKS; -int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks); +int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks, void* renderContext, int drFlags); void LiStopConnection(void); #ifdef __cplusplus