play: Fix error parsing API

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/1850>
This commit is contained in:
Philippe Normand 2022-03-04 09:57:02 +00:00 committed by Tim-Philipp Müller
parent 061d3d8cf8
commit ca273f3454
2 changed files with 3 additions and 3 deletions

View 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);

View 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);