mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
ges:source: Handle missing elements in converters
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/204>
This commit is contained in:
parent
6acee38459
commit
10f1b3555b
1 changed files with 6 additions and 1 deletions
|
@ -153,7 +153,12 @@ ges_source_create_topbin (GESSource * source, const gchar * bin_name,
|
||||||
priv->topbin = gst_object_ref (bin);
|
priv->topbin = gst_object_ref (bin);
|
||||||
last = link_elements (bin, elements);
|
last = link_elements (bin, elements);
|
||||||
if (last) {
|
if (last) {
|
||||||
priv->first_converter = gst_object_ref (elements->pdata[0]);
|
gint i = 0;
|
||||||
|
|
||||||
|
while (!elements->pdata[i])
|
||||||
|
i++;
|
||||||
|
|
||||||
|
priv->first_converter = gst_object_ref (elements->pdata[i]);
|
||||||
priv->last_converter = gst_object_ref (last);
|
priv->last_converter = gst_object_ref (last);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue