diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-30 07:44:50 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-30 07:44:50 +0200 |
commit | 350a2d1ba820d0a63c457d5805fb3c425d0a59b2 (patch) | |
tree | a9ecbd58f9e2a56922479221a80fb8170c868d26 | |
parent | 58302cedfa5a52ac27718e7c807ac9ced3ca966e (diff) |
gst-launch: Don't access the GstMessage structure directly
-rw-r--r-- | tools/gst-launch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c index c224b0815..6de499929 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -336,16 +336,18 @@ print_index_stats (GPtrArray * index_stats) static gboolean gst_is_missing_plugin_message (GstMessage * msg) { - if (GST_MESSAGE_TYPE (msg) != GST_MESSAGE_ELEMENT || msg->structure == NULL) + if (GST_MESSAGE_TYPE (msg) != GST_MESSAGE_ELEMENT + || gst_message_get_structure (msg) == NULL) return FALSE; - return gst_structure_has_name (msg->structure, "missing-plugin"); + return gst_structure_has_name (gst_message_get_structure (msg), + "missing-plugin"); } static const gchar * gst_missing_plugin_message_get_description (GstMessage * msg) { - return gst_structure_get_string (msg->structure, "name"); + return gst_structure_get_string (gst_message_get_structure (msg), "name"); } static void |