1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/rqm/files/patch-ab

39 lines
1.3 KiB
Plaintext

--- main.c.orig Wed Mar 8 08:32:07 2000
+++ main.c Wed Mar 8 08:32:28 2000
@@ -67,7 +67,7 @@
}
}
-static void rtp_callback(struct rtp *s, rtp_event *e)
+static void rqm_rtp_callback(struct rtp *s, rtp_event *e)
{
rtp_packet *p = (rtp_packet *) e->data;
rtcp_sr *sr = (rtcp_sr *) e->data;
@@ -177,7 +177,7 @@
char *addr;
char *port;
char cmd[100];
- u_int32 curr_rtp_time;
+ u_int32_t curr_rtp_time;
#ifdef WIN32
WSADATA WSAdata;
if (WSAStartup(WS_VERSION_TWO, &WSAdata) != 0 && WSAStartup(WS_VERSION_ONE, &WSAdata) != 0) {
@@ -199,7 +199,7 @@
addr = (char *) strtok(argv[1], "/");
port = (char *) strtok(NULL, "\0");
- rtp_session = rtp_init(addr, atoi(port), atoi(port), 15, 64000, rtp_callback, NULL);
+ rtp_session = rtp_init(addr, atoi(port), atoi(port), 15, 64000, rqm_rtp_callback, NULL);
/* Initialise the user interface... */
if (tcl_init(argc, argv) == FALSE) {
@@ -215,7 +215,7 @@
rtp_set_sdes(rtp_session, rtp_my_ssrc(rtp_session), RTCP_SDES_TOOL, VERSION, strlen(VERSION));
gettimeofday(&prev_t, NULL);
- curr_rtp_time = (u_int32) lrand48();
+ curr_rtp_time = (u_int32_t) lrand48();
while (Tk_GetNumMainWindows() > 0) {
gettimeofday(&curr_t, NULL);
curr_rtp_time += (int) (tv_diff(curr_t, prev_t) * 8000);