Define patch_ssrc as bool type

This variable clearly holds a boolean value, so let's use stdef to make
it clear.

Change-Id: I05233a413b0d8511d056e8f93467a111c4bdf119
This commit is contained in:
Pau Espin 2021-07-07 12:12:58 +02:00
parent 33347a4f5d
commit 4c77e9b748
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ struct mgcp_rtp_state {
struct {
/* are we patching the SSRC value? */
int patch_ssrc;
bool patch_ssrc;
/* original SSRC (to which we shall patch any different SSRC) */
uint32_t orig_ssrc;
/* offset to apply on the sequence number */

View File

@ -636,7 +636,7 @@ void mgcp_patch_and_count(struct mgcp_endpoint *endp,
adjust_rtp_timestamp_offset(endp, state, rtp_end, addr,
delta_seq, timestamp);
state->patch.patch_ssrc = 1;
state->patch.patch_ssrc = true;
ssrc = state->patch.orig_ssrc;
if (rtp_end->force_constant_ssrc != -1)
rtp_end->force_constant_ssrc -= 1;