]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: en50494 - add list (0, 1) for position val\ue, too
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Aug 2014 14:54:04 +0000 (16:54 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Aug 2014 15:07:53 +0000 (17:07 +0200)
src/input/mpegts/linuxdvb/linuxdvb_en50494.c

index 2c62b99d34587d9e62afcbee5fb27a6eef02f4b0..c17ecf6b8888e095c0d654439fb2fffa1f3d3245 100644 (file)
@@ -66,6 +66,17 @@ linuxdvb_en50494_class_get_title ( idnode_t *o )
   return title;
 }
 
+static htsmsg_t *
+linuxdvb_en50494_position_list ( void *o )
+{
+  uint32_t i;
+  htsmsg_t *m = htsmsg_create_list();
+  for (i = 0; i < 2; i++) {
+    htsmsg_add_u32(m, NULL, i);
+  }
+  return m;
+}
+
 htsmsg_t *
 linuxdvb_en50494_id_list ( void *o )
 {
@@ -112,6 +123,7 @@ const idclass_t linuxdvb_en50494_class =
       .id     = "position",
       .name   = "Position",
       .off    = offsetof(linuxdvb_en50494_t, le_position),
+      .list   = linuxdvb_en50494_position_list,
     },
     {
       .type   = PT_U16,