if (first)
tvh_strlcatf(buf, sizeof(buf), l, ", profile=");
tvh_strlcatf(buf, sizeof(buf), l, "%s'%s'",
- first ? "" : ",", pro->pro_name ?: "");
+ first ? "" : ",", profile_get_name(pro));
first = 0;
}
}
if (profile_chain_open(prch, &de->de_config->dvr_muxcnf, 0, 0)) {
profile_chain_close(prch);
tvherror("dvr", "unable to create new channel streaming chain '%s' for '%s', using default",
- pro->pro_name, channel_get_name(de->de_channel));
+ profile_get_name(pro), channel_get_name(de->de_channel));
pro = profile_find_by_name(NULL, NULL);
profile_chain_init(prch, pro, de->de_channel);
if (profile_chain_open(prch, &de->de_config->dvr_muxcnf, 0, 0)) {
tvherror("dvr", "unable to create channel streaming default chain '%s' for '%s'",
- pro->pro_name, channel_get_name(de->de_channel));
+ profile_get_name(pro), channel_get_name(de->de_channel));
profile_chain_close(prch);
free(prch);
return -EINVAL;
NULL, NULL, NULL, NULL);
if (de->de_s == NULL) {
tvherror("dvr", "unable to create new channel subcription for '%s' profile '%s'",
- channel_get_name(de->de_channel), pro->pro_name);
+ channel_get_name(de->de_channel), profile_get_name(pro));
profile_chain_close(prch);
free(prch);
return -EINVAL;
"htsp", SUBSCRIPTION_PACKET | SUBSCRIPTION_HTSP);
profile_chain_init(&hs->hs_prch, pro, ch);
if (profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod, 0)) {
- tvhlog(LOG_ERR, "htsp", "unable to create profile chain '%s'", pro->pro_name);
+ tvhlog(LOG_ERR, "htsp", "unable to create profile chain '%s'", profile_get_name(pro));
profile_chain_close(&hs->hs_prch);
free(hs);
return htsp_error("Stream setup error");
LIST_INSERT_HEAD(&htsp->htsp_subscriptions, hs, hs_link);
tvhdebug("htsp", "%s - subscribe to %s using profile %s",
- htsp->htsp_logname, channel_get_name(ch), pro->pro_name ?: "");
+ htsp->htsp_logname, channel_get_name(ch), profile_get_name(pro));
hs->hs_s = subscription_create_from_channel(&hs->hs_prch, NULL, weight,
htsp->htsp_logname,
SUBSCRIPTION_PACKET |
return profile_default;
TAILQ_FOREACH(pro, &profiles, pro_link) {
- if ((all || pro->pro_enabled) && !strcmp(pro->pro_name, name))
+ if ((all || pro->pro_enabled) && !strcmp(profile_get_name(pro), name))
return pro;
}
if (alt) {
TAILQ_FOREACH(pro, &profiles, pro_link) {
- if ((all || pro->pro_enabled) && !strcmp(pro->pro_name, alt))
+ if ((all || pro->pro_enabled) && !strcmp(profile_get_name(pro), alt))
return pro;
}
}
lock_assert(&global_lock);
TAILQ_FOREACH(pro, &profiles, pro_link) {
- if (name && !strcmp(pro->pro_name, name))
+ if (name && !strcmp(profile_get_name(pro), name))
return strdup(name);
}
if (profile_default)
- return strdup(profile_default->pro_name);
+ return strdup(profile_get_name(profile_default));
return NULL;
}
name = "pass";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
name = "matroska";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
name = "htsp";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
name = "webtv-vp8-vorbis-webm";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
}
name = "webtv-h264-aac-mpegts";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
}
name = "webtv-h264-aac-matroska";
pro = profile_find_by_name2(name, NULL, 1);
- if (pro == NULL || strcmp(pro->pro_name, name)) {
+ if (pro == NULL || strcmp(profile_get_name(pro), name)) {
htsmsg_t *conf;
conf = htsmsg_create_map();
tvh_strlcatf(buf, sizeof(buf), l, ", service: \"%s\"", si.si_service);
if (s->ths_prch && s->ths_prch->prch_pro)
- tvh_strlcatf(buf, sizeof(buf), l,
- ", profile=\"%s\"",
- s->ths_prch->prch_pro->pro_name ?: "");
+ tvh_strlcatf(buf, sizeof(buf), l, ", profile=\"%s\"",
+ profile_get_name(s->ths_prch->prch_pro));
if (s->ths_hostname)
tvh_strlcatf(buf, sizeof(buf), l, ", hostname=\"%s\"", s->ths_hostname);
s = subscription_create(prch, weight, name, flags, subscription_input,
hostname, username, client);
if (tvhtrace_enabled()) {
- const char *pro_name = prch->prch_pro ? (prch->prch_pro->pro_name ?: "") : "<none>";
+ const char *pro_name = prch->prch_pro ? profile_get_name(prch->prch_pro) : "<none>";
if (ch)
tvhtrace("subscription", "%04X: creating subscription for %s weight %d using profile %s",
shortid(s), channel_get_name(ch), weight, pro_name);