ges: Enhance debug logging

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8803>
This commit is contained in:
Thibault Saunier 2025-04-09 10:28:14 -04:00 committed by GStreamer Marge Bot
parent 28fdf598e4
commit 4066b145b6
2 changed files with 19 additions and 8 deletions

View File

@ -235,11 +235,16 @@ _set_value (GESMetaContainer * container, const gchar * meta_item,
gchar *val = gst_value_serialize (value);
if (val == NULL) {
GST_WARNING_OBJECT (container, "Could not set value on item: %s",
meta_item);
if (G_VALUE_TYPE (value) == G_TYPE_STRING) {
val = g_strdup ("");
} else {
GST_WARNING_OBJECT (container,
"Could not serialize value for: %s of type %s", meta_item,
G_VALUE_TYPE_NAME (value));
g_free (val);
return FALSE;
g_free (val);
return FALSE;
}
}
structure = _meta_container_get_structure (container);
@ -273,7 +278,8 @@ _can_write_value (GESMetaContainer * container, const gchar * item_name,
return TRUE;
if ((static_item->flags & GES_META_WRITABLE) == FALSE) {
GST_WARNING_OBJECT (container, "Can not write %s", item_name);
GST_WARNING_OBJECT (container, "Can not write %s of type %s", item_name,
g_type_name (type));
return FALSE;
}

View File

@ -330,9 +330,14 @@ _create_uri_source_asset (GESUriClipAsset * asset,
g_strdup (gst_discoverer_stream_info_get_stream_id (sinfo));
if (stream_id == NULL) {
GST_WARNING_OBJECT (asset,
"No stream ID, ignoring stream info: %p off type: %s", sinfo,
ges_track_type_name (type));
if (type != GES_TRACK_TYPE_UNKNOWN) {
GST_WARNING_OBJECT (asset,
"No stream ID, ignoring stream info: %p off type: %s", sinfo,
ges_track_type_name (type));
} else {
GST_INFO_OBJECT (asset, "No stream ID, ignoring stream info: %p", sinfo);
}
return;
}