update for netaddress change
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 31 Oct 2011 01:35:51 +0000 (02:35 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 2 Nov 2011 08:06:38 +0000 (09:06 +0100)
gst/rtpmanager/rtpsession.c
gst/udp/gstdynudpsink.c
gst/udp/gstudp.c
gst/udp/gstudpsrc.c

index 1ac18a7..786a855 100644 (file)
@@ -1699,7 +1699,7 @@ update_arrival_stats (RTPSession * sess, RTPArrivalStats * arrival,
     gboolean rtp, GstBuffer * buffer, GstClockTime current_time,
     GstClockTime running_time, guint64 ntpnstime)
 {
-  GstMetaNetAddress *meta;
+  GstNetAddressMeta *meta;
   GstRTPBuffer rtpb;
 
   /* get time of arrival */
@@ -1719,7 +1719,7 @@ update_arrival_stats (RTPSession * sess, RTPArrivalStats * arrival,
   }
 
   /* for netbuffer we can store the IP address to check for collisions */
-  meta = gst_buffer_get_meta_net_address (buffer);
+  meta = gst_buffer_get_net_address_meta (buffer);
   if (meta) {
     arrival->have_address = TRUE;
     memcpy (&arrival->address, &meta->naddr, sizeof (GstNetAddress));
index a78f9d7..b34dc60 100644 (file)
@@ -178,14 +178,14 @@ gst_dynudpsink_render (GstBaseSink * bsink, GstBuffer * buffer)
   gint ret;
   gsize size;
   guint8 *data;
-  GstMetaNetAddress *meta;
+  GstNetAddressMeta *meta;
   struct sockaddr_in theiraddr;
   guint16 destport;
   guint32 destaddr;
 
   memset (&theiraddr, 0, sizeof (theiraddr));
 
-  meta = gst_buffer_get_meta_net_address (buffer);
+  meta = gst_buffer_get_net_address_meta (buffer);
 
   if (meta == NULL) {
     GST_DEBUG ("Received buffer is not a GstNetBuffer, skipping");
index 3b77865..2ea852a 100644 (file)
@@ -39,7 +39,7 @@ plugin_init (GstPlugin * plugin)
   /* register info of the netaddress metadata so that we can use it from
    * multiple threads right away. Note that the plugin loading is always
    * serialized */
-  gst_meta_net_address_get_info ();
+  gst_net_address_meta_get_info ();
 
   if (!gst_element_register (plugin, "udpsink", GST_RANK_NONE,
           GST_TYPE_UDPSINK))
index 51a0446..059cdad 100644 (file)
@@ -394,7 +394,7 @@ static GstFlowReturn
 gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf)
 {
   GstUDPSrc *udpsrc;
-  GstMetaNetAddress *meta;
+  GstNetAddressMeta *meta;
   GstBuffer *outbuf;
   union gst_sockaddr
   {
@@ -529,7 +529,7 @@ no_select:
       gst_memory_new_wrapped (0, pktdata, g_free, pktsize, offset, ret));
 
   /* use buffer metadata so receivers can also track the address */
-  meta = gst_buffer_add_meta_net_address (outbuf);
+  meta = gst_buffer_add_net_address_meta (outbuf);
 
   switch (sa.sa.sa_family) {
     case AF_INET: