return 0;
}
+static void print_error(int err, char *str)
+{
+ char error_string[1024];
+ frsh_strerror(err , error_string, sizeof(error_string));
+ av_log(NULL, AV_LOG_ERROR, "%s: error %d: %s\n", str, err, error_string);
+}
+
static int
frsh_output_socket_create(FRSHContext *s)
{
}
ret = frsh_contract_negotiate(&s->contract, &s->vres);
- //if (ret) PERROR_AND_EXIT(ret, "frsh_contract_negotiate");
+ if (ret) print_error(ret, "frsh_contract_negotiate");
if (ret) return -1;
printf("Send endpoint created\n");