Add parameters to LiStartConnection

This commit is contained in:
Cameron Gutman 2014-01-20 22:33:02 -05:00
parent ac48766cad
commit d4422ced0d
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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