mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
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:
parent
061d3d8cf8
commit
ca273f3454
2 changed files with 3 additions and 3 deletions
|
@ -4657,14 +4657,14 @@ gst_play_message_parse_buffering_percent (GstMessage * msg, guint * percent)
|
||||||
* gst_play_message_parse_error:
|
* gst_play_message_parse_error:
|
||||||
* @msg: A #GstMessage
|
* @msg: A #GstMessage
|
||||||
* @error: (out) (optional) (transfer full): the resulting error
|
* @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
|
* Parse the given error @msg and extract the corresponding #GError
|
||||||
*
|
*
|
||||||
* Since: 1.20
|
* Since: 1.20
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_play_message_parse_error (GstMessage * msg, GError * error,
|
gst_play_message_parse_error (GstMessage * msg, GError ** error,
|
||||||
GstStructure ** details)
|
GstStructure ** details)
|
||||||
{
|
{
|
||||||
PARSE_MESSAGE_FIELD (msg, GST_PLAY_MESSAGE_DATA_ERROR, G_TYPE_ERROR, error);
|
PARSE_MESSAGE_FIELD (msg, GST_PLAY_MESSAGE_DATA_ERROR, G_TYPE_ERROR, error);
|
||||||
|
|
|
@ -420,7 +420,7 @@ GST_PLAY_API
|
||||||
void gst_play_message_parse_buffering_percent (GstMessage *msg, guint *percent);
|
void gst_play_message_parse_buffering_percent (GstMessage *msg, guint *percent);
|
||||||
|
|
||||||
GST_PLAY_API
|
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
|
GST_PLAY_API
|
||||||
void gst_play_message_parse_warning (GstMessage *msg, GError *error, GstStructure **details);
|
void gst_play_message_parse_warning (GstMessage *msg, GError *error, GstStructure **details);
|
||||||
|
|
Loading…
Reference in a new issue