From aa7b4f5ac76652a337566393a82953e180d6ec47 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 5 Sep 2008 14:12:01 +0000 Subject: [PATCH] gst-libs/gst/interfaces/propertyprobe.c: Check for NULL pointer, in the hope that this fixes #532864. Original commit message from CVS: * gst-libs/gst/interfaces/propertyprobe.c: Check for NULL pointer, in the hope that this fixes #532864. --- ChangeLog | 5 +++++ gst-libs/gst/interfaces/propertyprobe.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4d15ac9b9..2f760d2451 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-05 Stefan Kost + + * gst-libs/gst/interfaces/propertyprobe.c: + Check for NULL pointer, in the hope that this fixes #532864. + 2008-09-05 Tim-Philipp Müller * sys/xvimage/xvimagesink.c: (gst_xvimagesink_class_init): diff --git a/gst-libs/gst/interfaces/propertyprobe.c b/gst-libs/gst/interfaces/propertyprobe.c index b9d801dc6f..009e96169a 100644 --- a/gst-libs/gst/interfaces/propertyprobe.c +++ b/gst-libs/gst/interfaces/propertyprobe.c @@ -143,8 +143,12 @@ gst_property_probe_get_property (GstPropertyProbe * probe, const gchar * name) while (pspecs) { const GParamSpec *pspec = pspecs->data; - if (!strcmp (pspec->name, name)) - return pspec; + if (pspec) { + if (!strcmp (pspec->name, name)) + return pspec; + } else { + GST_WARNING_OBJECT (probe, "NULL paramspec in property probe list"); + } pspecs = pspecs->next; }