From 8070c2f68c43e0f84965e112874622234d818986 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 21 Apr 2020 23:38:11 +0200 Subject: [PATCH] [outputs] Change rtp timespec arg to take value instead of pointer --- src/outputs/rtp_common.c | 6 +++--- src/outputs/rtp_common.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/outputs/rtp_common.c b/src/outputs/rtp_common.c index a5b4cf3c..387046f1 100644 --- a/src/outputs/rtp_common.c +++ b/src/outputs/rtp_common.c @@ -244,7 +244,7 @@ rtp_sync_is_time(struct rtp_session *session) } struct rtp_packet * -rtp_sync_packet_next(struct rtp_session *session, struct rtcp_timestamp *cur_stamp, char type) +rtp_sync_packet_next(struct rtp_session *session, struct rtcp_timestamp cur_stamp, char type) { struct ntp_timestamp cur_ts; uint32_t rtptime; @@ -261,9 +261,9 @@ rtp_sync_packet_next(struct rtp_session *session, struct rtcp_timestamp *cur_sta session->sync_packet_next.data[2] = 0x00; session->sync_packet_next.data[3] = 0x07; - timespec_to_ntp(&cur_stamp->ts, &cur_ts); + timespec_to_ntp(&cur_stamp.ts, &cur_ts); - cur_pos = htobe32(cur_stamp->pos); + cur_pos = htobe32(cur_stamp.pos); memcpy(session->sync_packet_next.data + 4, &cur_pos, 4); cur_ts.sec = htobe32(cur_ts.sec); diff --git a/src/outputs/rtp_common.h b/src/outputs/rtp_common.h index 217353e4..172fcc46 100644 --- a/src/outputs/rtp_common.h +++ b/src/outputs/rtp_common.h @@ -75,6 +75,6 @@ bool rtp_sync_is_time(struct rtp_session *session); struct rtp_packet * -rtp_sync_packet_next(struct rtp_session *session, struct rtcp_timestamp *cur_stamp, char type); +rtp_sync_packet_next(struct rtp_session *session, struct rtcp_timestamp cur_stamp, char type); #endif /* !__RTP_COMMON_H__ */