mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gst: structure: Stop using private structure name quark field
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7432>
This commit is contained in:
parent
2d91521dfc
commit
0823c639cc
4 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue