Skip to content

Commit

Permalink
Make rtpp_socket_rtp_recv() behave just as rtpp_socket_rtp_recv_simple()
Browse files Browse the repository at this point in the history
in the case when dtime is NULL.

Bug report:	#87
  • Loading branch information
sobomax committed Jul 2, 2019
1 parent 3195284 commit 4e81405
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rtpp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ rtpp_socket_rtp_recv(struct rtpp_socket *self, const struct rtpp_timestamp *dtim
packet->laddr = laddr;
packet->lport = port;
}
if (dtime == NULL) {
goto out;
}

if (!timevaliszero(&rtime)) {
packet->rtime.wall = timeval2dtime(&rtime);
} else {
Expand All @@ -281,6 +285,7 @@ rtpp_socket_rtp_recv(struct rtpp_socket *self, const struct rtpp_timestamp *dtim
RTPP_DBG_ASSERT(packet->rtime.wall > 0);
packet->rtime.mono = dtime->mono;

out:
return (packet);
}

Expand Down

0 comments on commit 4e81405

Please sign in to comment.