static int _command(ClientData clientData, Tcl_Interp *interp, int argc, Tcl_Obj* const *objv) { _t *data = (_t *)clientData; options_t save = data->opts; if (framework_command(clientData, interp, argc, objv) != TCL_OK) return TCL_ERROR; if (save.log2_buff_n < data->opts.log2_buff_n || save.log2_buff_size < data->opts.log2_buff_size) { void *p = _configure(data); if (p != data) return fw_error_str(interp, p); } return TCL_OK; }
media query_pt4::parse(const std::string& url, const options& opts) const { _configure(opts); quvi_media_t qm; QUVIcode qc = quvi_parse(_quvi, const_cast<char*>(url.c_str()), &qm); if (qc != QUVI_OK) throw error(_quvi, qc); media r(_quvi, qm); quvi_parse_close(&qm); return r; }
std::string query_pt4::streams(const std::string& url, const quvi::options& opts) const { _configure(opts); char *fmts; const QUVIcode qc = quvi_query_formats(_quvi, const_cast<char*>(url.c_str()), &fmts); if (qc != QUVI_OK) throw error(_quvi, qc); std::string r = fmts; quvi_free(fmts); return r; }
static void *_init(void *arg) { _t *data = (_t *)arg; void *p = _configure(data); if (p != data) return p; return arg; }
void PertyOp::setConfiguration(const Settings& conf) { _settings = conf; _configure(); }
PertyOp::PertyOp() : _settings(conf()) { _configure(); }