xml-formatter: Fix loading sources
authorThibault Saunier <tsaunier@igalia.com>
Thu, 11 Jul 2019 19:43:47 +0000 (15:43 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 26 Jul 2019 17:48:51 +0000 (13:48 -0400)
And fix the project file which couldn't be load now that we
properly check clips coherency

ges/ges-base-xml-formatter.c
tests/check/ges/test-properties.xges

index 971cd77..f4744b5 100644 (file)
@@ -1069,7 +1069,7 @@ ges_base_xml_formatter_add_source (GESBaseXmlFormatter * self,
   GESBaseXmlFormatterPrivate *priv = _GET_PRIV (self);
   GESTrackElement *element = NULL;
 
-  if (priv->state == STATE_LOADING_CLIPS) {
+  if (priv->state != STATE_LOADING_CLIPS) {
     GST_DEBUG_OBJECT (self, "Not loading source elements in %s state.",
         loading_state_name (priv->state));
     return;
index 1fde741..ff74b63 100644 (file)
@@ -14,7 +14,7 @@
       <track track-type="2" caps="audio/x-raw" track-id="0"/>
       <track track-type="4" caps="video/x-raw" track-id="1"/>
       <layer priority="0" properties='properties, auto-transition=(boolean)true;' metadatas='metadatas, a=(guint)3'>
-        <clip id="0" layer-priority='0' asset-id="file:///test/not/exisiting" type-name="GESUriClip" track-types="6" start="0" duration="10000000000">
+        <clip id="0" layer-priority='0' asset-id="file:///test/not/exisiting" type-name="GESUriClip" track-types="6" start="0" duration="1000000000">
         <effect asset-id='agingtv' clip-id='0' type-name='GESEffect' track-type='4' track-id='1' metadatas='metadatas;' children-properties='properties, scratch-lines=(uint)12;'/>
         </clip>
       </layer>