mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
examples: add example description to giosrc-mounting
Also, use GST_MESSAGE_TYPE instead of accessing the GstMessage structure
This commit is contained in:
parent
5cb40d7320
commit
79718aec16
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue