Commit c807342f authored by Timothy Stack's avatar Timothy Stack
Browse files

turn off recording for now

parent 9129c16c
......@@ -614,6 +614,7 @@ int main(int argc, char *argv[])
}
// We want mezzanine to copy the image data over.
if (debug > 1)
mezzmap->calibrate += 1;
if (setsockopt(fd,
IPPROTO_TCP,
......@@ -658,9 +659,11 @@ int main(int argc, char *argv[])
config_vmc_client.fixed_y;
break;
case MTP_SNAPSHOT:
if (debug > 1) {
info("doing snapshot\n");
snapshot_start = mezz_frame_count;
do_snapshot = 1;
}
break;
default:
break;
......@@ -669,6 +672,7 @@ int main(int argc, char *argv[])
}
if (!good) {
if (debug > 1)
mezzmap->calibrate -= 1;
close(lpc);
FD_CLR(lpc, &readfds);
......@@ -686,16 +690,18 @@ int main(int argc, char *argv[])
*/
do {
if (mezz_frame_count != last_mezz_frame) {
int plen;
if (debug > 1) {
info("vmc-client: new frame\n");
}
record_frame(mezzmap);
if ((rc = encode_packets(mezzmap)) == -1) {
if ((plen = encode_packets(mezzmap)) == -1) {
errorc("error: unable to encode packets");
}
else if (rc == 0) {
else if (plen == 0) {
if (debug) {
info("vmc-client: nothing to send %d\n",
mezz_frame_count);
......@@ -706,7 +712,15 @@ int main(int argc, char *argv[])
for (lpc = 0; lpc <= maxfd; lpc++) {
if (FD_ISSET(lpc, &clientfds)) {
write(lpc, packet_buffer, rc);
int rc;
do {
rc = write(lpc,
packet_buffer,
plen);
} while (rc == -1 && errno == EINTR);
if (rc == -1)
errorc("error: network write\n");
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment