diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir
index d149589b2b..8c94e2252e 100644
--- a/girs/Gst-1.0.gir
+++ b/girs/Gst-1.0.gir
@@ -26819,8 +26819,8 @@ want to write to the @details structure.
The returned structure must not be freed.
-
- The details, or NULL if none.
+
+ The details
diff --git a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c
index daff351be4..7d23a2fb4f 100644
--- a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c
+++ b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c
@@ -2181,9 +2181,7 @@ update_message_with_uri (GstURIDecodeBin3 * uridecodebin, GstMessage * msg)
GstStructure *details;
msg = gst_message_make_writable (msg);
details = gst_message_writable_details (msg);
- if (details) {
- gst_structure_set (details, "uri", G_TYPE_STRING, uri, NULL);
- }
+ gst_structure_set (details, "uri", G_TYPE_STRING, uri, NULL);
}
if (unlock_after)
diff --git a/subprojects/gstreamer/gst/gstmessage.c b/subprojects/gstreamer/gst/gstmessage.c
index e5b7f1bebb..a82dea7b9d 100644
--- a/subprojects/gstreamer/gst/gstmessage.c
+++ b/subprojects/gstreamer/gst/gstmessage.c
@@ -505,7 +505,7 @@ gst_message_get_details (GstMessage * message)
*
* The returned structure must not be freed.
*
- * Returns: (transfer none) (nullable): The details, or NULL if none.
+ * Returns: (transfer none): The details
*
* Since: 1.26
*/