[outputs] Change rtp timespec arg to take value instead of pointer
This commit is contained in:
parent
349b05bd4f
commit
8070c2f68c
|
@ -244,7 +244,7 @@ rtp_sync_is_time(struct rtp_session *session)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct rtp_packet *
|
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;
|
struct ntp_timestamp cur_ts;
|
||||||
uint32_t rtptime;
|
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[2] = 0x00;
|
||||||
session->sync_packet_next.data[3] = 0x07;
|
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);
|
memcpy(session->sync_packet_next.data + 4, &cur_pos, 4);
|
||||||
|
|
||||||
cur_ts.sec = htobe32(cur_ts.sec);
|
cur_ts.sec = htobe32(cur_ts.sec);
|
||||||
|
|
|
@ -75,6 +75,6 @@ bool
|
||||||
rtp_sync_is_time(struct rtp_session *session);
|
rtp_sync_is_time(struct rtp_session *session);
|
||||||
|
|
||||||
struct rtp_packet *
|
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__ */
|
#endif /* !__RTP_COMMON_H__ */
|
||||||
|
|
Loading…
Reference in New Issue