Skip to content

Commit

Permalink
fix(rtsp-output): Fixed the bug of incomplete multicast port display …
Browse files Browse the repository at this point in the history
…during log output.
  • Loading branch information
iamscottxu committed Dec 24, 2023
1 parent eefc717 commit e338223
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rtsp_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ static void rtsp_output_rtsp_start(void *data)
session->GetMulticastIp(true).c_str());
blog(LOG_INFO, "\tipv4 address: \t%s",
session->GetMulticastIp(false).c_str());
for (size_t index = 0; index < OBS_OUTPUT_MULTI_TRACK; index++) {
if (obs_output_get_audio_encoder(out_data->output, index) ==
nullptr) continue;
blog(LOG_INFO, "\tchannel %zu port: \t%d", index,
session->GetMulticastPort(
static_cast<xop::MediaChannelId>(index)));
blog(LOG_INFO, "\tchannel 0 port (video): \t%d",
session->GetMulticastPort(static_cast<xop::MediaChannelId>(0)));
for (size_t index = 1; index < OBS_OUTPUT_MULTI_TRACK + 1 ; index++) {
auto channel_port = session->GetMulticastPort(static_cast<xop::MediaChannelId>(index));
if (channel_port == 0) break;
blog(LOG_INFO, "\tchannel %zu port (audio): \t%d", index, channel_port);
}
blog(LOG_INFO,
"------------------------------------------------");
Expand Down

0 comments on commit e338223

Please sign in to comment.