mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
set 'is-image' property true when source has an image stream type
This commit is contained in:
parent
c07097f6bb
commit
56c26dd853
1 changed files with 5 additions and 2 deletions
|
@ -357,9 +357,12 @@ discoverer_discovered_cb (GstDiscoverer * discoverer,
|
||||||
|
|
||||||
if (sinf->streamtype == GST_STREAM_AUDIO)
|
if (sinf->streamtype == GST_STREAM_AUDIO)
|
||||||
tfs->supportedformats |= GES_TRACK_TYPE_AUDIO;
|
tfs->supportedformats |= GES_TRACK_TYPE_AUDIO;
|
||||||
else if ((sinf->streamtype == GST_STREAM_VIDEO) ||
|
else if (sinf->streamtype == GST_STREAM_VIDEO)
|
||||||
(sinf->streamtype == GST_STREAM_IMAGE))
|
|
||||||
tfs->supportedformats |= GES_TRACK_TYPE_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);
|
g_object_set (tfs, "max-duration", info->duration, NULL);
|
||||||
|
|
Loading…
Reference in a new issue