mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
gst/gstelement.c: also show file/line/func if no additional debug was given
Original commit message from CVS: * gst/gstelement.c: (gst_element_message_full): also show file/line/func if no additional debug was given
This commit is contained in:
parent
281eb4c00b
commit
93d14f9c64
2 changed files with 22 additions and 12 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
2006-01-31 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstelement.c: (gst_element_message_full):
|
||||
also show file/line/func if no additional debug was given
|
||||
|
||||
2006-01-31 Sebastien Moutte <sebastien@moutte.net>
|
||||
|
||||
* win32/vs7/grammar.vcproj:
|
||||
|
@ -26,16 +31,16 @@
|
|||
2006-01-30 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* docs/manual/advanced-dparams.xml:
|
||||
describe controller
|
||||
describe controller
|
||||
* docs/manual/advanced-position.xml:
|
||||
* docs/manual/basics-init.xml:
|
||||
* docs/manual/manual.xml:
|
||||
* docs/manual/titlepage.xml:
|
||||
* docs/pwg/pwg.xml:
|
||||
* docs/pwg/titlepage.xml:
|
||||
cleanup xml (more to come)
|
||||
cleanup xml (more to come)
|
||||
* libs/gst/controller/gstcontroller.c:
|
||||
fix typo
|
||||
fix typo
|
||||
|
||||
2006-01-30 Sebastien Moutte <sebastien@moutte.net>
|
||||
|
||||
|
@ -126,8 +131,8 @@
|
|||
* gst/gstutils.c:
|
||||
* gst/gstvalue.c:
|
||||
* libs/gst/base/gstadapter.c:
|
||||
doc fixes, to link to function, just write gst_cool_function(), don't
|
||||
prefix with '#'
|
||||
doc fixes, to link to function, just write gst_cool_function(), don't
|
||||
prefix with '#'
|
||||
|
||||
2006-01-27 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
|
|
|
@ -1451,10 +1451,11 @@ void gst_element_message_full
|
|||
gchar *name;
|
||||
gchar *sent_text;
|
||||
gchar *sent_debug;
|
||||
gboolean has_debug = TRUE;
|
||||
GstMessage *message = NULL;
|
||||
|
||||
/* checks */
|
||||
GST_DEBUG ("start");
|
||||
GST_DEBUG_OBJECT (element, "start");
|
||||
g_return_if_fail (GST_IS_ELEMENT (element));
|
||||
g_return_if_fail ((type == GST_MESSAGE_ERROR) ||
|
||||
(type == GST_MESSAGE_WARNING));
|
||||
|
@ -1470,13 +1471,17 @@ void gst_element_message_full
|
|||
/* construct a sent_debug with extra information from source */
|
||||
if ((debug == NULL) || (debug[0] == 0)) {
|
||||
/* debug could have come from g_strdup_printf (""); */
|
||||
sent_debug = NULL;
|
||||
} else {
|
||||
name = gst_object_get_path_string (GST_OBJECT (element));
|
||||
sent_debug = g_strdup_printf ("%s(%d): %s: %s:\n%s",
|
||||
file, line, function, name, debug ? debug : "");
|
||||
g_free (name);
|
||||
has_debug = FALSE;
|
||||
}
|
||||
|
||||
name = gst_object_get_path_string (GST_OBJECT (element));
|
||||
if (has_debug)
|
||||
sent_debug = g_strdup_printf ("%s(%d): %s (): %s:\n%s",
|
||||
file, line, function, name, debug);
|
||||
else
|
||||
sent_debug = g_strdup_printf ("%s(%d): %s (): %s",
|
||||
file, line, function, name);
|
||||
g_free (name);
|
||||
g_free (debug);
|
||||
|
||||
/* create gerror and post message */
|
||||
|
|
Loading…
Reference in a new issue