gst/gstbin.c: Can't use GPOINTER_TO_INT and GINT_TO_POINTER with GTypes.
authorTim-Philipp Müller <tim@centricular.net>
Fri, 7 Jul 2006 15:42:08 +0000 (15:42 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 7 Jul 2006 15:42:08 +0000 (15:42 +0000)
commit99f16655f4cfbc8e06b5972417ba11279083a64e
tree0fdccb384350a182b836ccff90194208ffe767fb
parenta55b4bf721a9e83a8d2fe590c01f9f353d004557
gst/gstbin.c: Can't use GPOINTER_TO_INT and GINT_TO_POINTER with GTypes.

Original commit message from CVS:
* gst/gstbin.c: (compare_interface), (gst_bin_get_by_interface),
(gst_bin_iterate_all_by_interface):
Can't use GPOINTER_TO_INT and GINT_TO_POINTER with GTypes.
GTypes are gulongs and thus the top 4 bytes might be cut
off on some platforms when doing GPOINTER_TO_INT, leading
to invalid GTypes and bad things happening.
Also add a check to make sure the type passed in is really
an interface type.
ChangeLog
gst/gstbin.c