structure: fix for api update
authorWim Taymans <wim.taymans@collabora.co.uk>
Sat, 29 Oct 2011 07:03:07 +0000 (09:03 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 2 Nov 2011 08:04:27 +0000 (09:04 +0100)
gst-libs/gst/audio/gstaudioencoder.c
gst-libs/gst/interfaces/videooverlay.c
gst-libs/gst/pbutils/gstdiscoverer.c
gst/encoding/gststreamsplitter.c
gst/playback/gstdecodebin2.c
gst/playback/gstplaybin2.c

index c5f1a86..3d1112a 100644 (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")))
index 0b43fbb..6b49c48 100644 (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);
 }
index 1ebf277..8499a88 100644 (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 */
index ff9e679..f1323e2 100644 (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;
index 7b0583e..059aefd 100644 (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);
 
index 0a55f7c..acbfef9 100644 (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);