Misc bits and pieces concerning GUPnP-DLNA

Notes on editing profiles

Note: Move to own page once it clutters too much and link from here.

  • Inheritance of restrictions is a bit non-intuitive. Fields are only inherited if not touched. If a sibling contains a restriction for a field present in its ancestor, the new restriction shadows the old restriction. For example:

  <restriction name="Foo">
    <field name="name" type="string">
      <value>video/x-h264</value>
    </field>
    <field name="profile" type="string">
      <value>baseline</value>
    </field>
  <restriction>

  <restriction name="Bar">
    <parent name="Foo" />
    <field name="profile" type="string">
      <value>main</value>
    </field>
  <restriction>

Bar will match video/x-h264 but will not match on baseline profile, only on main.

  • If there are several mentions for the same field in one restriction, only the last one is effective:

  <restriction name="Foo">
    <field name="name" type="string">
      <value>video/x-h264</value>
    </field>
    <field name="level" type="string">
      <value>4</value>
    </field>
    <field name="level" type="string" used="in-relaxed">
      <value>4.1</value>
    </field>
  <restriction>

will cause this restriction only match in relaxed mode on level 4.1 but not on level 4 in any mode.

Projects/GUPnP/DLNA (last edited 2013-11-22 15:43:55 by WilliamJonMcCann)