Output error if compiled without app audio support and attempting to use app audio

This commit is contained in:
dec05eba
2025-09-10 21:27:09 +02:00
parent 9386dd4c96
commit ade714d417
2 changed files with 8 additions and 0 deletions

View File

@@ -3140,6 +3140,11 @@ int main(int argc, char **argv) {
return true;
}, &app_audio_names);
}
#else
if(uses_app_audio) {
fprintf(stderr, "gsr error: application audio can't be recorded because GPU Screen Recorder is built without application audio support (-Dapp_audio option)\n");
_exit(2);
}
#endif
validate_merged_audio_inputs_app_audio(requested_audio_inputs, app_audio_names);