Makes G_DISABLE_CAST_CHECKS consistent with glib
GLib defines G_DISABLE_CAST_CHECKS
if and only if the buildtype
is release
. Every GStreamer module instead disable cast checks by default on even version number, and have an extra option gobject-cast-checks
to control that.
IMHO, we should remove the odd/even version number trick and use the buildtype=release check instead. Probably need to keep gobject-cast-checks
option for distros that could be using it. If people agree, I could prepare a patch for all modules.