Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
luzpaz
gstreamer
Commits
4fb17846
Commit
4fb17846
authored
Jan 31, 2004
by
Thomas Vander Stichele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add path for element throwing error
Original commit message from CVS: add path for element throwing error
parent
5d0b5a20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
ChangeLog
ChangeLog
+7
-0
gst/gstelement.c
gst/gstelement.c
+5
-2
gst/gstelement.h
gst/gstelement.h
+0
-1
No files found.
ChangeLog
View file @
4fb17846
2004-01-31 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/gst/tmpl/gstelement.sgml:
* docs/gst/tmpl/gstxml.sgml:
* gst/gstelement.c: (gst_element_error_full):
add element path to error
2004-01-31 Benjamin Otte <in7y118@public.uni-hamburg.de>
* docs/random/mimetypes:
...
...
gst/gstelement.c
View file @
4fb17846
...
...
@@ -2393,6 +2393,7 @@ gst_element_error_full
const
gchar
*
file
,
const
gchar
*
function
,
gint
line
)
{
GError
*
error
=
NULL
;
gchar
*
name
;
gchar
*
sent_message
;
gchar
*
sent_debug
;
...
...
@@ -2435,13 +2436,15 @@ gst_element_error_full
/* emit the signal, make sure the element stays available */
gst_object_ref
(
GST_OBJECT
(
element
));
name
=
gst_object_get_path_string
(
GST_OBJECT
(
element
));
if
(
debug
)
sent_debug
=
g_strdup_printf
(
"%s(%d):%s:
\n
%s"
,
file
,
line
,
function
,
sent_debug
=
g_strdup_printf
(
"%s(%d):
%s:
%s:
\n
%s"
,
file
,
line
,
function
,
name
,
debug
?
debug
:
""
);
else
sent_debug
=
NULL
;
g_free
(
debug
);
g_free
(
name
);
g_signal_emit
(
G_OBJECT
(
element
),
gst_element_signals
[
ERROR
],
0
,
element
,
error
,
sent_debug
);
GST_CAT_INFO
(
GST_CAT_ERROR_SYSTEM
,
"signalled error in %s: %s"
,
...
...
gst/gstelement.h
View file @
4fb17846
...
...
@@ -142,7 +142,6 @@ typedef enum {
#define GST_ELEMENT_ERROR(el, domain, code, message, debug) G_STMT_START { \
gchar *__msg = _gst_element_error_printf message; \
gchar *__dbg = _gst_element_error_printf debug; \
GST_ERROR_OBJECT (el, "%s", __dbg); \
gst_element_error_full (GST_ELEMENT(el), \
GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \
__msg, __dbg, __FILE__, GST_FUNCTION, __LINE__); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment