while (1) {
status = switch_core_file_read(&fh, data, &len);
if (status != SWITCH_STATUS_SUCCESS) break;
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "%d\n", len);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "read: %" SWITCH_SIZE_T_FMT "\n", len);
// fst_check(len == SAMPLES);
status = switch_core_file_read_video(&fh, &frame, SVR_FLUSH);
#include <switch.h>
#include <test/switch_test.h>
+#ifndef MSG_CONFIRM
+#define MSG_CONFIRM 0
+#endif
+
static const char *rx_host = "127.0.0.1";
static switch_port_t rx_port = 1234;
static const char *tx_host = "127.0.0.1";