Skip to content

Commit 5bebb60

Browse files
committed
srt_tx: do not modify args
1 parent 3658720 commit 5bebb60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/srt_tx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ static int catch_udp(struct uprobe *uprobe, struct upipe *upipe,
205205
upump_start(u);
206206
return uprobe_throw_next(uprobe, upipe, event, args);
207207
case UPROBE_UDPSRC_NEW_PEER: {
208-
int udp_fd;
209-
int sig = va_arg(args, int);
210-
if (sig != UPIPE_UDPSRC_SIGNATURE)
208+
if (ubase_get_signature(args) != UPIPE_UDPSRC_SIGNATURE)
211209
break;
212210

211+
va_arg(args, unsigned int); // signature
212+
int udp_fd;
213213
ubase_assert(upipe_udpsink_get_fd(upipe_udpsink, &udp_fd));
214214
if (udp_fd >= 0) {
215215
upipe_err(upipe, "Already connected, ignoring");

0 commit comments

Comments
 (0)