Skip to content

Commit 2474037

Browse files
committed
5.0.3-dev and add some diagnostics around a pesky fault condition.
1 parent c62c34a commit 2474037

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Process this file with autoconf to produce a configure script.
22

33
AC_PREREQ([2.50])
4-
AC_INIT([shairport-sync], [5.0.1+], [4265913+mikebrady@users.noreply.github.com])
4+
AC_INIT([shairport-sync], [5.0.3-dev], [4265913+mikebrady@users.noreply.github.com])
55
: ${CFLAGS="-O3"}
66
: ${CXXFLAGS="-O3"}
77
AM_INIT_AUTOMAKE([subdir-objects])

rtp.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,12 @@ int frame_to_ptp_local_time(uint32_t timestamp, uint64_t *time, rtsp_conn_info *
15131513
int32_t frame_difference = timestamp - anchor_rtptime;
15141514
int64_t time_difference = frame_difference;
15151515
time_difference = time_difference * 1000000000;
1516-
if (conn->input_rate == 0)
1517-
die("conn->input_rate is zero!");
1518-
time_difference = time_difference / conn->input_rate;
1516+
if (conn->input_rate == 0) {
1517+
debug(1,"in a call to frame_to_ptp_local_time, conn->input_rate is zero!");
1518+
time_difference = 0;
1519+
} else {
1520+
time_difference = time_difference / conn->input_rate;
1521+
}
15191522
uint64_t ltime = anchor_local_time + time_difference;
15201523
*time = ltime;
15211524
result = 0;

0 commit comments

Comments
 (0)