From a2964eb1ad95d057d3466f859f8b1a846b613d6e Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 30 Sep 2021 19:03:40 -0300 Subject: [PATCH] ges:uri-asset: Ignore streams with no ID Since 0d95d9258b97 we respect the asset stream-id in `GESUriSource` so we can not work with unknown or broken stream ID in the assets. We just ignore them, warning about it and we should fix that in demuxer so they don't expose pad without providing a stream id for them. Part-of: --- subprojects/gst-editing-services/ges/ges-uri-asset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-editing-services/ges/ges-uri-asset.c b/subprojects/gst-editing-services/ges/ges-uri-asset.c index f33d8e99b7..9dd576d4bd 100644 --- a/subprojects/gst-editing-services/ges/ges-uri-asset.c +++ b/subprojects/gst-editing-services/ges/ges-uri-asset.c @@ -365,9 +365,9 @@ _create_uri_source_asset (GESUriClipAsset * asset, g_strdup (gst_discoverer_stream_info_get_stream_id (sinfo)); if (stream_id == NULL) { - GST_WARNING ("No stream ID found, using the pointer instead"); - - stream_id = g_strdup_printf ("%i", GPOINTER_TO_INT (sinfo)); + GST_WARNING ("No stream ID, ignoring %p on %s", sinfo, + ges_track_type_name (type)); + return; } if (type == GES_TRACK_TYPE_VIDEO)