examples: gst-play: Fix signature of the error callback

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6880>
This commit is contained in:
Sebastian Dröge 2024-05-20 17:32:27 +03:00
parent e56d3d3e07
commit b8a8eacdb2

View file

@ -69,9 +69,12 @@ end_of_stream_cb (GstPlaySignalAdapter * adapter, Player * play)
}
static void
error_cb (GstPlaySignalAdapter * adapter, GError * err, Player * play)
error_cb (GstPlaySignalAdapter * adapter, GError * err, GstStructure * details,
Player * play)
{
gst_printerr ("ERROR %s for %s\n", err->message, play->uris[play->cur_idx]);
if (details)
gst_printerr ("Error details: %" GST_PTR_FORMAT, details);
/* if looping is enabled, then disable it else will keep looping forever */
play->repeat = FALSE;