gst_plugins_base/gst/playback/gstplaysink.c
changeset 35 e3187d58ca5e
parent 8 4a7fac7dd34a
equal deleted inserted replaced
33:ec10aa4a09b0 35:e3187d58ca5e
   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,