Skip to content

Commit

Permalink
Initialize packet.is_rtp to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Feb 9, 2021
1 parent 66cf343 commit 8ab7a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/janus_streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -8106,6 +8106,7 @@ static void *janus_streaming_relay_thread(void *data) {
JANUS_LOG(LOG_HUGE, "[%s] Got audio RTCP feedback: SSRC %"SCNu32"\n",
name, janus_rtcp_get_sender_ssrc(buffer, bytes));
/* Relay on all sessions */
packet.is_rtp = FALSE;
packet.is_video = FALSE;
packet.data = (janus_rtp_header *)buffer;
packet.length = bytes;
Expand All @@ -8132,6 +8133,7 @@ static void *janus_streaming_relay_thread(void *data) {
JANUS_LOG(LOG_HUGE, "[%s] Got video RTCP feedback: SSRC %"SCNu32"\n",
name, janus_rtcp_get_sender_ssrc(buffer, bytes));
/* Relay on all sessions */
packet.is_rtp = FALSE;
packet.is_video = TRUE;
packet.data = (janus_rtp_header *)buffer;
packet.length = bytes;
Expand Down

0 comments on commit 8ab7a00

Please sign in to comment.