prop: skip completely the PT_NONE variables, fixes #2601
This commit is contained in:
parent
f48e390437
commit
65fd96395a
1 changed files with 4 additions and 6 deletions
10
src/prop.c
10
src/prop.c
|
@ -395,18 +395,16 @@ prop_serialize_value
|
|||
}
|
||||
}
|
||||
|
||||
/* Skip - special blocker */
|
||||
if (pl->type == PT_NONE)
|
||||
return;
|
||||
|
||||
htsmsg_t *m = htsmsg_create_map();
|
||||
|
||||
/* ID / type */
|
||||
htsmsg_add_str(m, "id", pl->id);
|
||||
htsmsg_add_str(m, "type", val2str(pl->type, typetab) ?: "none");
|
||||
|
||||
/* Skip - special blocker */
|
||||
if (pl->type == PT_NONE) {
|
||||
htsmsg_add_msg(msg, NULL, m);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Metadata */
|
||||
htsmsg_add_str(m, "caption", pl->name);
|
||||
if (pl->islist) {
|
||||
|
|
Loading…
Add table
Reference in a new issue