structure: fix for api update

This commit is contained in:
Wim Taymans 2011-10-29 09:03:07 +02:00
parent df4999aeb1
commit 5bdfd6d899
6 changed files with 8 additions and 8 deletions

View file

@ -1161,7 +1161,7 @@ gst_audio_encoder_proxy_getcaps (GstAudioEncoder * enc, GstCaps * caps)
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")))

View file

@ -390,7 +390,7 @@ gst_video_overlay_prepare_window_handle (GstVideoOverlay * overlay)
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);
}

View file

@ -584,7 +584,7 @@ collect_stream_information (GstDiscoverer * dc, PrivateStream * ps, guint idx)
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 */

View file

@ -180,7 +180,7 @@ gst_stream_splitter_sink_event (GstPad * pad, GstEvent * event)
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;

View file

@ -3414,11 +3414,11 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
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);
@ -3462,7 +3462,7 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
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);

View file

@ -1780,7 +1780,7 @@ gst_play_bin_set_current_text_stream (GstPlayBin * playbin, gint stream)
* 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);