mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
return NULL from g2g_object_class_find_property if gtk_object_arg_get_info returns an error
Original commit message from CVS: return NULL from g2g_object_class_find_property if gtk_object_arg_get_info returns an error
This commit is contained in:
parent
cd3b66fc5a
commit
4837519148
1 changed files with 5 additions and 2 deletions
|
@ -91,10 +91,13 @@ g2g_object_class_find_property(GtkObjectClass *class,gchar *name)
|
|||
{
|
||||
GtkArgInfo *info;
|
||||
GParamSpec *spec;
|
||||
|
||||
//fprintf(stderr,"class name is %s\n",gtk_type_name(class->type));
|
||||
|
||||
gtk_object_arg_get_info(class->type,name,&info);
|
||||
// return NULL if no info found
|
||||
if (gtk_object_arg_get_info(class->type,name,&info)){
|
||||
return NULL;
|
||||
}
|
||||
|
||||
spec = g_new0(GParamSpec,1);
|
||||
|
||||
if (info) {
|
||||
|
|
Loading…
Reference in a new issue