Skip to content

Commit e8a5fd4

Browse files
committed
http/sdp: do not start srv if not needed
to avoid unnecessary spamming for :help
1 parent e69f80e commit e8a5fd4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils/sdp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@ sdp_done(struct sdp *sdp_state)
206206

207207
static void
208208
start(struct sdp *sdp_state) {
209+
if (!sdp_state->want_sdp_audio && !sdp_state->want_sdp_video) {
210+
return; // probably just help
211+
}
209212
// either SDP properties not set or not all streams already configured
210-
if (!sdp_state || sdp_state->want_sdp_audio != sdp_state->audio_set ||
213+
if (sdp_state->want_sdp_audio != sdp_state->audio_set ||
211214
sdp_state->want_sdp_video != sdp_state->video_set) {
212215
return;
213216
}

0 commit comments

Comments
 (0)