gst-libs/gst/interfaces/propertyprobe.c: Check for NULL pointer, in the hope that...
authorStefan Kost <ensonic@users.sourceforge.net>
Fri, 5 Sep 2008 14:12:01 +0000 (14:12 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Fri, 5 Sep 2008 14:12:01 +0000 (14:12 +0000)
Original commit message from CVS:
* gst-libs/gst/interfaces/propertyprobe.c:
Check for NULL pointer, in the hope that this fixes #532864.

ChangeLog
gst-libs/gst/interfaces/propertyprobe.c

index e4d15ac9b9f3fa8994ba979019fb93b54e2bbbab..2f760d2451c03c2fa6d64156a5d392e4ef3b5fcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-05  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst-libs/gst/interfaces/propertyprobe.c:
+         Check for NULL pointer, in the hope that this fixes #532864.
+
 2008-09-05  Tim-Philipp Müller  <tim.muller at collabora co uk>
 
        * sys/xvimage/xvimagesink.c: (gst_xvimagesink_class_init):
index b9d801dc6f996ffb15d96ec8cb015afa7cecc405..009e96169acc860814f000ef909362f9960a02ac 100644 (file)
@@ -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;
   }