mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
gst/gstpad.c: check if data is NULL before outputting debug info. (fixes #145100)
Original commit message from CVS: * gst/gstpad.c: check if data is NULL before outputting debug info. (fixes #145100)
This commit is contained in:
parent
04ec1a2ad9
commit
d8c591b902
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-21 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/gstpad.c:
|
||||
check if data is NULL before outputting debug info. (fixes #145100)
|
||||
|
||||
2004-07-21 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/schedulers/entryscheduler.c:
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
|
||||
GST_DEBUG_CATEGORY_STATIC (debug_dataflow);
|
||||
#define DEBUG_DATA(obj,data,notice) G_STMT_START{\
|
||||
if (GST_IS_EVENT (data)) { \
|
||||
if (!data) { \
|
||||
GST_CAT_DEBUG_OBJECT (debug_dataflow, obj, "NULL data value"); \
|
||||
} else if (GST_IS_EVENT (data)) { \
|
||||
GST_CAT_DEBUG_OBJECT (debug_dataflow, obj, "%s event %p (type %d, refcount %d)", notice, data, \
|
||||
GST_EVENT_TYPE (data), GST_DATA_REFCOUNT_VALUE (data)); \
|
||||
} else { \
|
||||
|
|
Loading…
Reference in a new issue