mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
uri-asset: Don't create AudioSource asset for unknown track types
And just skip them as we can't do anything else with them right now Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3976>
This commit is contained in:
parent
396c758544
commit
47a07a4f5a
1 changed files with 9 additions and 3 deletions
|
@ -365,15 +365,21 @@ _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, ignoring %p on %s", sinfo,
|
||||
GST_WARNING_OBJECT (asset,
|
||||
"No stream ID, ignoring stream info: %p off type: %s", sinfo,
|
||||
ges_track_type_name (type));
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == GES_TRACK_TYPE_VIDEO)
|
||||
if (type == GES_TRACK_TYPE_VIDEO) {
|
||||
src_asset = ges_asset_request (GES_TYPE_VIDEO_URI_SOURCE, stream_id, NULL);
|
||||
else
|
||||
} else if (type == GES_TRACK_TYPE_AUDIO) {
|
||||
src_asset = ges_asset_request (GES_TYPE_AUDIO_URI_SOURCE, stream_id, NULL);
|
||||
} else {
|
||||
GST_INFO_OBJECT (asset,
|
||||
"Unknown track type %d, not creating any asset backing it", type);
|
||||
return;
|
||||
}
|
||||
g_free (stream_id);
|
||||
|
||||
src_priv = GES_URI_SOURCE_ASSET (src_asset)->priv;
|
||||
|
|
Loading…
Reference in a new issue