mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
76330d35c7
commit
aa7b4f5ac7
2 changed files with 11 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue