Add a recording mode for debugging purposes

This commit is contained in:
Cameron Gutman
2021-06-20 11:15:30 -05:00
parent 75999a6e07
commit 5e3aa93479
3 changed files with 103 additions and 0 deletions

View File

@@ -190,6 +190,11 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
memcpy(&VideoCallbacks, drCallbacks, sizeof(VideoCallbacks));
memcpy(&AudioCallbacks, arCallbacks, sizeof(AudioCallbacks));
#ifdef LC_DEBUG_RECORD_MODE
// Install the pass-through recorder callbacks
setRecorderCallbacks(&VideoCallbacks, &AudioCallbacks);
#endif
// Hook the termination callback so we can avoid issuing a termination callback
// after LiStopConnection() is called.
//