const GValue *val;
GstStructure *s;
- s = gst_structure_id_empty_new (q_name);
+ s = gst_structure_new_id_empty (q_name);
if ((val = gst_structure_get_value (allowed_s, "rate")))
gst_structure_set_value (s, "rate", val);
if ((val = gst_structure_get_value (allowed_s, "channels")))
g_return_if_fail (GST_IS_VIDEO_OVERLAY (overlay));
GST_LOG_OBJECT (GST_OBJECT (overlay), "prepare window handle");
- s = gst_structure_empty_new ("prepare-window-handle");
+ s = gst_structure_new_empty ("prepare-window-handle");
msg = gst_message_new_element (GST_OBJECT (overlay), s);
gst_element_post_message (GST_ELEMENT (overlay), msg);
}
gchar *stname;
stname = g_strdup_printf ("stream-%02d", idx);
- st = gst_structure_empty_new (stname);
+ st = gst_structure_new_empty (stname);
g_free (stname);
/* Get caps */
gst_event_unref (event);
event =
gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM,
- gst_structure_empty_new ("stream-switching-eos"));
+ gst_structure_new_empty ("stream-switching-eos"));
toall = TRUE;
eos = TRUE;
break;
return NULL;
}
- u = gst_structure_id_empty_new (topology_structure_name);
+ u = gst_structure_new_id_empty (topology_structure_name);
/* Now at the last element */
if (chain->elements && (chain->endpad || chain->deadend)) {
- s = gst_structure_id_empty_new (topology_structure_name);
+ s = gst_structure_new_id_empty (topology_structure_name);
gst_structure_id_set (u, topology_caps, GST_TYPE_CAPS, chain->endcaps,
NULL);
caps = _gst_element_get_linked_caps (elem_next, elem);
if (caps) {
- s = gst_structure_id_empty_new (topology_structure_name);
+ s = gst_structure_new_id_empty (topology_structure_name);
gst_structure_id_set (u, topology_caps, GST_TYPE_CAPS, caps, NULL);
gst_caps_unref (caps);
* currently displayed subtitles. This event will
* never travel outside subtitleoverlay!
*/
- s = gst_structure_empty_new ("subtitleoverlay-flush-subtitle");
+ s = gst_structure_new_empty ("subtitleoverlay-flush-subtitle");
event = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM_OOB, s);
gst_pad_send_event (peer, event);
gst_object_unref (peer);