examples: add example description to giosrc-mounting

Also, use GST_MESSAGE_TYPE instead of accessing the GstMessage structure
This commit is contained in:
Luis de Bethencourt 2015-04-09 16:49:44 +01:00
parent 5cb40d7320
commit 79718aec16

View file

@ -1,4 +1,7 @@
/* GStreamer
*
* giosrc-mounting: example application that shows how to handle the
* "not-mounted" message
*
* Copyright (C) 2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>
*
@ -48,8 +51,7 @@ mount_cb (GObject * obj, GAsyncResult * res, gpointer user_data)
static gboolean
message_handler (GstBus * bus, GstMessage * message, gpointer user_data)
{
switch (message->type) {
switch (GST_MESSAGE_TYPE (message)) {
case GST_MESSAGE_ELEMENT:{
const GstStructure *s = gst_message_get_structure (message);
const gchar *name = gst_structure_get_name (s);