diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c index df872dc4f1..4413d887b4 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c @@ -1413,7 +1413,7 @@ gst_encoding_profile_get_input_caps (GstEncodingProfile * profile) GstCaps *out, *tmp; GList *ltmp; GstStructure *st, *outst; - GQuark out_name; + const gchar *out_name; guint i, len; GstCaps *fcaps; @@ -1438,13 +1438,13 @@ gst_encoding_profile_get_input_caps (GstEncodingProfile * profile) /* Combine the format with the restriction caps */ outst = gst_caps_get_structure (fcaps, 0); - out_name = gst_structure_get_name_id (outst); + out_name = gst_structure_get_name (outst); tmp = gst_caps_new_empty (); len = gst_caps_get_size (profile->restriction); for (i = 0; i < len; i++) { st = gst_structure_copy (gst_caps_get_structure (profile->restriction, i)); - st->name = out_name; + gst_structure_set_name (st, out_name); gst_caps_append_structure (tmp, st); } diff --git a/subprojects/gstreamer/gst/gstevent.c b/subprojects/gstreamer/gst/gstevent.c index 5032f1ce9d..a6e0a6efc7 100644 --- a/subprojects/gstreamer/gst/gstevent.c +++ b/subprojects/gstreamer/gst/gstevent.c @@ -454,7 +454,7 @@ gst_event_has_name_id (GstEvent * event, GQuark name) if (GST_EVENT_STRUCTURE (event) == NULL) return FALSE; - return (GST_EVENT_STRUCTURE (event)->name == name); + return (gst_structure_get_name_id (GST_EVENT_STRUCTURE (event)) == name); } /** diff --git a/subprojects/gstreamer/gst/gstinfo.c b/subprojects/gstreamer/gst/gstinfo.c index c82e03f8bb..bf26403d3f 100644 --- a/subprojects/gstreamer/gst/gstinfo.c +++ b/subprojects/gstreamer/gst/gstinfo.c @@ -903,7 +903,8 @@ gst_info_structure_to_string (const GstStructure * s) { if (G_LIKELY (s)) { gchar *str = gst_structure_to_string (s); - if (G_UNLIKELY (pretty_tags && s->name == GST_QUARK (TAGLIST))) + if (G_UNLIKELY (pretty_tags + && gst_structure_get_name_id (s) == GST_QUARK (TAGLIST))) return prettify_structure_string (str); else return str; diff --git a/subprojects/gstreamer/gst/gsttracerrecord.c b/subprojects/gstreamer/gst/gsttracerrecord.c index 1caa687135..9ccc56ec23 100644 --- a/subprojects/gstreamer/gst/gsttracerrecord.c +++ b/subprojects/gstreamer/gst/gsttracerrecord.c @@ -100,7 +100,7 @@ gst_tracer_record_build_format (GstTracerRecord * self) { GstStructure *structure = self->spec; GString *s; - gchar *name = (gchar *) g_quark_to_string (structure->name); + gchar *name = (gchar *) gst_structure_get_name (structure); gchar *p; g_return_if_fail (g_str_has_suffix (name, ".class"));