mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Add parameters to LiStartConnection
This commit is contained in:
parent
ac48766cad
commit
d4422ced0d
@ -50,7 +50,7 @@ void LiStopConnection(void) {
|
|||||||
LC_ASSERT(stage == STAGE_NONE);
|
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;
|
int err;
|
||||||
|
|
||||||
Limelog("Initializing platform...");
|
Limelog("Initializing platform...");
|
||||||
@ -100,7 +100,7 @@ int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECO
|
|||||||
Limelog("done\n");
|
Limelog("done\n");
|
||||||
|
|
||||||
Limelog("Starting video stream...");
|
Limelog("Starting video stream...");
|
||||||
err = startVideoStream(NULL, 0);
|
err = startVideoStream(renderContext, drFlags);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
Limelog("Video stream start failed: %d\n", err);
|
Limelog("Video stream start failed: %d\n", err);
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
@ -37,7 +37,7 @@ typedef struct _DECODER_RENDERER_CALLBACKS {
|
|||||||
DecoderRendererSubmitDecodeUnit submitDecodeUnit;
|
DecoderRendererSubmitDecodeUnit submitDecodeUnit;
|
||||||
} DECODER_RENDERER_CALLBACKS, *PDECODER_RENDERER_CALLBACKS;
|
} 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);
|
void LiStopConnection(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user