From: Wim Taymans Date: Mon, 31 Oct 2011 01:35:51 +0000 (+0100) Subject: update for netaddress change X-Git-Tag: RELEASE-0.11.1~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75e0c6052fa570c7c931cdf7666d8956f94e4d75;p=platform%2Fupstream%2Fgst-plugins-good.git update for netaddress change --- diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 1ac18a7..786a855 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -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)); diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c index a78f9d7..b34dc60 100644 --- a/gst/udp/gstdynudpsink.c +++ b/gst/udp/gstdynudpsink.c @@ -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"); diff --git a/gst/udp/gstudp.c b/gst/udp/gstudp.c index 3b77865..2ea852a 100644 --- a/gst/udp/gstudp.c +++ b/gst/udp/gstudp.c @@ -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)) diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 51a0446..059cdad 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -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: