mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
gst-launch: Don't access the GstMessage structure directly
This commit is contained in:
parent
58302cedfa
commit
350a2d1ba8
1 changed files with 5 additions and 3 deletions
|
@ -336,16 +336,18 @@ print_index_stats (GPtrArray * index_stats)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_is_missing_plugin_message (GstMessage * msg)
|
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 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 *
|
static const gchar *
|
||||||
gst_missing_plugin_message_get_description (GstMessage * msg)
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue