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:
Benjamin Otte 2004-07-21 21:20:10 +00:00
parent 04ec1a2ad9
commit d8c591b902
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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 { \