printf("Error in scanf()\n");
return -1;
}
- getchar();
+ getc(stdin);
captureIdx = captureIdx - 1; // Compensate for idx start at 1.
#endif
error = ptrViECapture->GetCaptureDevice(captureIdx, deviceName,
clock_time = webrtc::TickTime::MillisecondTimestamp();
timing << clock_time << std::endl;
}
- char c = getchar();
+ char c = getc(stdin);
fflush(stdin);
while (c != 's') {
if (c == '\n' && enable_labeling == 1) {
clock_time = webrtc::TickTime::MillisecondTimestamp();
timing << clock_time << std::endl;
}
- c = getchar();
+ c = getc(stdin);
}
if (enable_labeling == 1) {
clock_time = webrtc::TickTime::MillisecondTimestamp();