equal
deleted
inserted
replaced
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, |