play: Fix error parsing API
authorPhilippe Normand <philn@igalia.com>
Fri, 4 Mar 2022 09:57:02 +0000 (09:57 +0000)
committerPhilippe Normand <philn@igalia.com>
Fri, 4 Mar 2022 10:00:30 +0000 (10:00 +0000)
The GError is an out parameter, so should be a ** parameter, like the details
parameter.

Fixes #1063

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1849>

subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c
subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.h

index fbc5589..e03ff3f 100644 (file)
@@ -4657,14 +4657,14 @@ gst_play_message_parse_buffering_percent (GstMessage * msg, guint * percent)
  * gst_play_message_parse_error:
  * @msg: A #GstMessage
  * @error: (out) (optional) (transfer full): the resulting error
- * @details: (out) (optional) (nullable) (transfer full): A GstStructure containing extra details about the error
+ * @details: (out) (optional) (nullable) (transfer full): A #GstStructure containing additional details about the error
  *
  * Parse the given error @msg and extract the corresponding #GError
  *
  * Since: 1.20
  */
 void
-gst_play_message_parse_error (GstMessage * msg, GError * error,
+gst_play_message_parse_error (GstMessage * msg, GError ** error,
     GstStructure ** details)
 {
   PARSE_MESSAGE_FIELD (msg, GST_PLAY_MESSAGE_DATA_ERROR, G_TYPE_ERROR, error);
index ce0d6c5..0b703e7 100644 (file)
@@ -420,7 +420,7 @@ GST_PLAY_API
 void           gst_play_message_parse_buffering_percent          (GstMessage *msg, guint *percent);
 
 GST_PLAY_API
-void           gst_play_message_parse_error                      (GstMessage *msg, GError *error, GstStructure **details);
+void           gst_play_message_parse_error                      (GstMessage *msg, GError **error, GstStructure **details);
 
 GST_PLAY_API
 void           gst_play_message_parse_warning                    (GstMessage *msg, GError *error, GstStructure **details);