Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prop: skip completely the PT_NONE variables, fixes #2601
  • Loading branch information
perexg committed Jan 14, 2015
1 parent f48e390 commit 65fd963
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/prop.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 65fd963

Please sign in to comment.