We can use `gst_message_get_structure' in both versions, so do that
rather than ifdeffery. Use the `GST_MESSAGE_TYPE' macro to get the
type, for future compatibility.
static void bus_message(GstBus UNUSED *bus, GstMessage *msg,
gpointer UNUSED u)
{
- switch(msg->type) {
+ switch(GST_MESSAGE_TYPE(msg)) {
case GST_MESSAGE_ERROR:
-#ifdef HAVE_GSTREAMER_0_10
- disorder_fatal(0, "%s",
- gst_structure_get_string(msg->structure, "debug"));
-#else
disorder_fatal(0, "%s",
gst_structure_get_string(gst_message_get_structure(msg),
"debug"));
-#endif
default:
break;
}