set 'is-image' property true when source has an image stream type
authorBrandon Lewis <brandon@collabora.co.uk>
Mon, 9 Aug 2010 16:34:35 +0000 (18:34 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 13 Aug 2010 09:50:30 +0000 (11:50 +0200)
ges/ges-timeline.c

index 43dd47e2399f804506107ed7152689875794ec3f..db0fffd8048dc306f9a92091fc510d21a7c8a8eb 100644 (file)
@@ -357,9 +357,12 @@ discoverer_discovered_cb (GstDiscoverer * discoverer,
 
       if (sinf->streamtype == GST_STREAM_AUDIO)
         tfs->supportedformats |= GES_TRACK_TYPE_AUDIO;
-      else if ((sinf->streamtype == GST_STREAM_VIDEO) ||
-          (sinf->streamtype == GST_STREAM_IMAGE))
+      else if (sinf->streamtype == GST_STREAM_VIDEO)
         tfs->supportedformats |= GES_TRACK_TYPE_VIDEO;
+      else if (sinf->streamtype == GST_STREAM_IMAGE) {
+        tfs->supportedformats |= GES_TRACK_TYPE_VIDEO;
+        g_object_set (G_OBJECT (tfs), "is-image", (gboolean) TRUE, NULL);
+      }
     }
 
     g_object_set (tfs, "max-duration", info->duration, NULL);