From 56c26dd8536211f810af6a8e98f7b3e3d8629a96 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Mon, 9 Aug 2010 18:34:35 +0200 Subject: [PATCH] set 'is-image' property true when source has an image stream type --- ges/ges-timeline.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 43dd47e239..db0fffd804 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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);