mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
e56d3d3e07
commit
b8a8eacdb2
1 changed files with 4 additions and 1 deletions
|
@ -69,9 +69,12 @@ end_of_stream_cb (GstPlaySignalAdapter * adapter, Player * play)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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]);
|
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 */
|
/* if looping is enabled, then disable it else will keep looping forever */
|
||||||
play->repeat = FALSE;
|
play->repeat = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue