bin: cache index
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 28 Aug 2009 16:37:44 +0000 (18:37 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 28 Aug 2009 16:41:42 +0000 (18:41 +0200)
commitd4012be4698e5aa4dc24d14c7fc95f0af0ee0d54
tree0f6979d4d7ab45f3c54aeab11f95eadef2d7f7c6
parenta3f9908266f652de5b4a3b0510f6161432794744
bin: cache index

Cache the last index that was set with _set_index() and return this in the
_get_index() call.
Set the cached index on newly added elements.

Fixes #566881
gst/gstbin.c