Skip to content

Commit 7e5cfbe

Browse files
committed
srts: fix socket_id check
1 parent 2ffc85d commit 7e5cfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/upipe-srt/upipe_srt_sender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static int upipe_srt_sender_input_set_flow_def(struct upipe *upipe, struct uref
507507
if (upipe_srt_sender->sek_len[0] || upipe_srt_sender->sek_len[1]) {
508508
upipe_dbg_va(upipe, "Using %s key", even_key ? "even" : "odd");
509509
} else {
510-
if (upipe_srt_sender->socket_id)
510+
if (upipe_srt_sender->socket_id != UINT64_MAX)
511511
upipe_dbg(upipe, "No encryption key in handshake");
512512
}
513513

@@ -632,7 +632,7 @@ static inline void upipe_srt_sender_input(struct upipe *upipe, struct uref *uref
632632
return;
633633
}
634634

635-
if (upipe_srt_sender->socket_id == 0) {
635+
if (upipe_srt_sender->socket_id == UINT64_MAX) {
636636
uref_free(uref);
637637
return;
638638
}

0 commit comments

Comments
 (0)