ges:uri-asset: Ignore streams with no ID
authorThibault Saunier <tsaunier@igalia.com>
Thu, 30 Sep 2021 22:03:40 +0000 (19:03 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 2 Oct 2021 10:44:26 +0000 (10:44 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1001>

subprojects/gst-editing-services/ges/ges-uri-asset.c

index f33d8e9..9dd576d 100644 (file)
@@ -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)