]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
prop: skip completely the PT_NONE variables, fixes #2601
authorJaroslav Kysela <perex@perex.cz>
Wed, 14 Jan 2015 19:58:23 +0000 (20:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 14 Jan 2015 19:58:23 +0000 (20:58 +0100)
src/prop.c

index 35d6f029ad6dea9e02330047a71c248d2762569d..41fdb6cea622d48c1566ee4541457e1c1449b8ea 100644 (file)
@@ -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) {