mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
tests: Give more debugging info when samples could not be generated
This commit is contained in:
parent
cf96e4145e
commit
e2385bcb2f
1 changed files with 9 additions and 1 deletions
|
@ -157,9 +157,17 @@ ges_generate_test_file_audio_video (const gchar * filedest,
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
} else if (GST_MESSAGE_TYPE (message) & GST_MESSAGE_ERROR) {
|
} else if (GST_MESSAGE_TYPE (message) & GST_MESSAGE_ERROR) {
|
||||||
|
gchar *debug = NULL;
|
||||||
|
GError *err = NULL;
|
||||||
|
|
||||||
|
gst_message_parse_error (message, NULL, &debug);
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
g_print ("Error");
|
GST_ERROR ("Got error %s from %s fron the bus while generation: %s"
|
||||||
|
"debug infos: %s", GST_OBJECT_NAME (message->src), err->message,
|
||||||
|
debug ? debug : NULL, filedest);
|
||||||
|
g_clear_error (&err);
|
||||||
|
g_free (debug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue