From: Stefan Kost Date: Thu, 24 Nov 2005 16:56:28 +0000 (+0000) Subject: gst/gstinfo.h: do not crash on pad==NULL X-Git-Tag: RELEASE-0_9_7~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cd1643368c14acd63348fcd279ad12a7d8ea8a9;p=platform%2Fupstream%2Fgstreamer.git gst/gstinfo.h: do not crash on pad==NULL Original commit message from CVS: * gst/gstinfo.h: do not crash on pad==NULL --- diff --git a/ChangeLog b/ChangeLog index 73b1040..5e72ee9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-24 Stefan Kost + + * gst/gstinfo.h: + do not crash on pad==NULL + 2005-11-24 Thomas Vander Stichele Patch by: Stefan Kost diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 97cdf2d..0897c2f 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -185,9 +185,11 @@ struct _GstDebugCategory { * statements. */ #define GST_DEBUG_PAD_NAME(pad) \ - (GST_OBJECT_PARENT(pad) != NULL) ? \ + (pad != NULL) ? \ + ((GST_OBJECT_PARENT(pad) != NULL) ? \ GST_STR_NULL (GST_OBJECT_NAME (GST_OBJECT_PARENT(pad))) : \ - "''", GST_OBJECT_NAME (pad) + "''" ) : "''", \ + (pad==NULL) ? GST_OBJECT_NAME (pad) : "''" /** * GST_FUNCTION: