Skip to content

Commit

Permalink
do not fail on -x loopback if no audio
Browse files Browse the repository at this point in the history
There is no audio loopback protocol. But when audio is dot enabled,
we can silently ignore that and keep running only video. Fixes:
`uv -t testcard -d gl -x loopback`

(the above, however, worked when used `-x V:loopback`)
  • Loading branch information
MartinPulec committed Nov 16, 2023
1 parent 9eab706 commit 57b50c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ int audio_init(struct state_audio **ret, struct module *parent,
s->sender = NET_JACK;
s->receiver = NET_JACK;
#endif
} else {
} else if (s->audio_tx_mode != 0) {
log_msg(LOG_LEVEL_ERROR, "Unknow audio protocol: %s\n", opt->proto);
goto error;
}
Expand Down

0 comments on commit 57b50c3

Please sign in to comment.