Skip to content

Commit

Permalink
Merge pull request #8 from kierank/srt-new
Browse files Browse the repository at this point in the history
examples: Support source filtering in srt listener mode
  • Loading branch information
funman authored Jan 16, 2024
2 parents 8add7e0 + e963d85 commit 7cdbcf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/rist_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void addr_to_str(const struct sockaddr *s, char uri[INET6_ADDRSTRLEN+6])

static int start(void)
{
bool listener = srcpath && *srcpath == '@';
bool listener = srcpath && strchr(srcpath, '@');
struct upipe_mgr *upipe_udpsrc_mgr = upipe_udpsrc_mgr_alloc();
upipe_udpsrc = upipe_void_alloc(upipe_udpsrc_mgr, &uprobe_udp);
upipe_mgr_release(upipe_udpsrc_mgr);
Expand Down
2 changes: 1 addition & 1 deletion examples/rist_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static int start(void)
static unsigned z = 0;
z++;

bool listener = dirpath && *dirpath == '@';
bool listener = dirpath && strchr(dirpath, '@');

/* rtp source */
struct upipe_mgr *upipe_udpsrc_mgr = upipe_udpsrc_mgr_alloc();
Expand Down

0 comments on commit 7cdbcf3

Please sign in to comment.