From: Wim Taymans Date: Sat, 29 Oct 2011 07:03:07 +0000 (+0200) Subject: structure: fix for api update X-Git-Tag: 1.19.3~511^2~7229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bdfd6d8997c082dc90a2589f100552b4a764325;p=platform%2Fupstream%2Fgstreamer.git structure: fix for api update --- diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index c5f1a86..3d1112a 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -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"))) diff --git a/gst-libs/gst/interfaces/videooverlay.c b/gst-libs/gst/interfaces/videooverlay.c index 0b43fbb..6b49c48 100644 --- a/gst-libs/gst/interfaces/videooverlay.c +++ b/gst-libs/gst/interfaces/videooverlay.c @@ -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); } diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 1ebf277..8499a88 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -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 */ diff --git a/gst/encoding/gststreamsplitter.c b/gst/encoding/gststreamsplitter.c index ff9e679..f1323e2 100644 --- a/gst/encoding/gststreamsplitter.c +++ b/gst/encoding/gststreamsplitter.c @@ -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; diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 7b0583e..059aefd 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -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); diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 0a55f7c..acbfef9 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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);