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.
This commit is contained in:
Stefan Kost 2008-09-05 14:12:01 +00:00
parent 76330d35c7
commit aa7b4f5ac7
2 changed files with 11 additions and 2 deletions

View file

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

View 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;
}