gstobject: Replace recursive gst_object_has_ancestor() with an iterative version
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 14 Oct 2009 06:30:07 +0000 (08:30 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 14 Oct 2009 06:34:03 +0000 (08:34 +0200)
commitb8454d623d4d92949a0548b8d1d6bc061e18b11b
tree2c1228c7b713a8cdb6262458aedcce27e80ac02a
parent4917bb4fc254f11041ee5f76c8ffffc6780a393c
gstobject: Replace recursive gst_object_has_ancestor() with an iterative version

This is slightly more efficient because the compiler can't do tail
recursion here and has to keep all stack frames.

Not that efficiency is that important here but I already had
the iterative version somewhere else and both are easy to read.
gst/gstobject.c