diff --git a/limelight-common/VideoStream.c b/limelight-common/VideoStream.c index d5d2b6b..b0b7035 100644 --- a/limelight-common/VideoStream.c +++ b/limelight-common/VideoStream.c @@ -179,12 +179,14 @@ int startVideoStream(void* rendererContext, int drFlags) { return err; } + // This must be called before the decoder thread starts submitting + // decode units + callbacks.start(); + err = PltCreateThread(DecoderThreadProc, NULL, &decoderThread); if (err != 0) { return err; } - callbacks.start(); - return 0; }