gst_plugins_base/gst/playback/gstplaysink.c
changeset 34 1b8125c02661
parent 16 8e837d1bf446
equal deleted inserted replaced
32:bacedbef5672 34:1b8125c02661
   778     const gchar * name)
   778     const gchar * name)
   779 {
   779 {
   780   GstElement *result = NULL;
   780   GstElement *result = NULL;
   781   GstIterator *it;
   781   GstIterator *it;
   782 
   782 
       
   783   if (!obj)
       
   784       return result;
   783   if (g_object_class_find_property (G_OBJECT_GET_CLASS (obj), name)) {
   785   if (g_object_class_find_property (G_OBJECT_GET_CLASS (obj), name)) {
   784     result = obj;
   786     result = obj;
   785   } else if (GST_IS_BIN (obj)) {
   787   } else if (GST_IS_BIN (obj)) {
   786     it = gst_bin_iterate_recurse (GST_BIN_CAST (obj));
   788     it = gst_bin_iterate_recurse (GST_BIN_CAST (obj));
   787     result = gst_iterator_find_custom (it,
   789     result = gst_iterator_find_custom (it,