TeleMidia / ginga

A Ginga iTV middleware implementation by TeleMídia/PUC-Rio
http://ginga.org.br
GNU General Public License v2.0
51 stars 8 forks source link

Fix link test on second instasame Mediasettings #153

Open alanlivio opened 5 years ago

alanlivio commented 5 years ago

The following code not work. Reported by @BrunoXL

<ncl>
  <head>
    <connectorBase>
      <causalConnector id="onBeginTestStart">
        <compoundCondition operator="and">
          <simpleCondition role="onBegin" />
          <assessmentStatement comparator="eq">
            <attributeAssessment role="test" />
            <valueAssessment value="1" />
          </assessmentStatement>
        </compoundCondition>
        <simpleAction role="start" max="unbounded" qualifier="par" />
      </causalConnector>
    </connectorBase>
  </head>
  <body>
    <port id="start1" component="ctx" />
    <media id="settings1" type="application/x-ginga-settings">
      <property name="p1" />
    </media>
    <context id="ctx">
      <port id="start1" component="m1" value="red" />
      <media id="settings2" type="application/x-ginga-settings">
        <property name="p1" value="1" />
      </media>
      <media id="m2">
        <property name="background" value="gren" />
      </media>
      <link xconnector="onBeginTestStart">
        <bind role="onBegin" component="m1" />
        <bind role="test" component="settings2" interface="p1" />
        <bind role="star" component="m2" />
      </link>
    </context>
  </body>
</ncl>