refactoring

This commit is contained in:
Maxim Devaev
2022-11-03 19:09:17 +03:00
parent a24e0eeb86
commit 335f19f0e3
2 changed files with 9 additions and 7 deletions

View File

@@ -440,13 +440,15 @@ static struct janus_plugin_result *_plugin_handle_message(
"s=PiKVM uStreamer" RN
"t=0 0" RN
"%s%s",
us_get_now_id() >> 1,
# if JANUS_PLUGIN_API_VERSION >= 100
// Place video SDP before audio SDP so that the video and audio streams
// have predictable indices, even if audio is not available.
us_get_now_id() >> 1, video_sdp, audio_sdp
// See also client.c.
video_sdp, audio_sdp
# else
// For versions of Janus prior to 1.x, place the audio SDP first.
us_get_now_id() >> 1, audio_sdp, video_sdp
audio_sdp, video_sdp
# endif
);
free(audio_sdp);