mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
utils: const-ify arguments to gst_object_default_error()
This commit is contained in:
parent
711f2d8abb
commit
7b0e3356eb
2 changed files with 6 additions and 3 deletions
|
@ -2438,10 +2438,12 @@ gst_pad_get_parent_element (GstPad * pad)
|
|||
* The default handler will simply print the error string using g_print.
|
||||
*/
|
||||
void
|
||||
gst_object_default_error (GstObject * source, GError * error, gchar * debug)
|
||||
gst_object_default_error (GstObject * source, const GError * error,
|
||||
const gchar * debug)
|
||||
{
|
||||
gchar *name = gst_object_get_path_string (source);
|
||||
|
||||
/* FIXME 0.11: should change this to g_printerr() */
|
||||
g_print (_("ERROR: from element %s: %s\n"), name, error->message);
|
||||
if (debug)
|
||||
g_print (_("Additional debug info:\n%s\n"), debug);
|
||||
|
|
|
@ -992,8 +992,9 @@ GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
|
|||
*/
|
||||
#define GST_ROUND_DOWN_64(num) ((num)&(~63))
|
||||
|
||||
void gst_object_default_error (GstObject * source,
|
||||
GError * error, gchar * debug);
|
||||
void gst_object_default_error (GstObject * source,
|
||||
const GError * error,
|
||||
const gchar * debug);
|
||||
|
||||
/* element functions */
|
||||
void gst_element_create_all_pads (GstElement *element);
|
||||
|
|
Loading…
Reference in a new issue