one more param addition.

pull/14/head
Tom Early 7 years ago
parent cccbe1b262
commit dd584efecc

@ -263,7 +263,7 @@ static void readFrom20000()
struct timeval tv; struct timeval tv;
int inactive = 0; int inactive = 0;
short seq_no = 0; short seq_no = 0;
uint16_t streamid; uint16_t streamid = 0U;
unsigned char sync_codes[3] = {0x55, 0x2d, 0x16}; unsigned char sync_codes[3] = {0x55, 0x2d, 0x16};
SDSVT dsvt; SDSVT dsvt;
unsigned short stream_id_to_dvap = 0; unsigned short stream_id_to_dvap = 0;
@ -338,11 +338,7 @@ static void readFrom20000()
ctrl_in = 0x80; ctrl_in = 0x80;
written_to_q = true; written_to_q = true;
printf("Start G2: streamid=%04x, flags=%02x:%02x:%02x, my=%.8s, sfx=%.4s, ur=%.8s, rpt1=%.8s, rpt2=%.8s\n", printf("Start G2: streamid=%04x, flags=%02x:%02x:%02x, my=%.8s, sfx=%.4s, ur=%.8s, rpt1=%.8s, rpt2=%.8s\n", ntohs(dsvt.streamid), dsvt.hdr.flag[0], dsvt.hdr.flag[1], dsvt.hdr.flag[2], dsvt.hdr.mycall, dsvt.hdr.sfx, dsvt.hdr.urcall, dsvt.hdr.rpt1, dsvt.hdr.rpt2);
dsvt.streamid,
dsvt.hdr.flag[0], dsvt.hdr.flag[1], dsvt.hdr.flag[2],
dsvt.hdr.mycall, dsvt.hdr.sfx, dsvt.hdr.urcall,
dsvt.hdr.rpt1, dsvt.hdr.rpt2);
/* save the streamid that is winning */ /* save the streamid that is winning */
streamid = dsvt.streamid; streamid = dsvt.streamid;
@ -432,7 +428,7 @@ static void readFrom20000()
seq_no = 0; seq_no = 0;
if ((dsvt.ctrl & 0x40) != 0) { if ((dsvt.ctrl & 0x40) != 0) {
printf("End G2: streamid=%04x\n", dsvt.streamid); printf("End G2: streamid=%04x\n", ntohs(dsvt.streamid));
streamid = 0; streamid = 0;
@ -473,7 +469,7 @@ static void readFrom20000()
busy20000 = false; busy20000 = false;
break; break;
} else { } else {
fprintf(stderr, "sending silent frame where: len=%d, inactive=%d\n", len, inactive); fprintf(stderr, "sending silent frame where: len=%d, inactive=%d, streamid=%04x\n", len, inactive, ntohs(stream_id_to_dvap));
if (space == 127) { if (space == 127) {
if (seq_no == 0) { if (seq_no == 0) {
silence[9] = 0x55; silence[9] = 0x55;

Loading…
Cancel
Save

Powered by TurnKey Linux.