Skip to content

Commit

Permalink
Fixed data port not being returned when creating Streaming mountpoint…
Browse files Browse the repository at this point in the history
…s with the legacy API
  • Loading branch information
lminiero committed Apr 28, 2022
1 parent 27ba254 commit 1e94efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/janus_streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -4104,7 +4104,7 @@ static json_t *janus_streaming_process_synchronous_request(janus_streaming_sessi
if(stream->fd[2] != -1) {
json_object_set_new(ml, "video_port_3", json_integer(stream->port[2]));
}
} else if(stream->type == JANUS_STREAMING_MEDIA_VIDEO) {
} else if(stream->type == JANUS_STREAMING_MEDIA_DATA) {
if(stream->fd[0] != -1) {
if(stream->host)
json_object_set_new(ml, "data_host", json_string(stream->host));
Expand Down

0 comments on commit 1e94efc

Please sign in to comment.