From 327741a21a1b1fcadc37e3aa1f294b12d8ba8f30 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Fri, 25 Apr 2008 13:31:48 +0000 Subject: gst/: Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid problems on win32 (#529707). Original commit message from CVS: * gst/rtp/gstasteriskh263.c: (gst_asteriskh263_chain): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_add_internal): * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid problems on win32 (#529707). --- gst/rtp/gstasteriskh263.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst/rtp/gstasteriskh263.c') diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c index be7fc84a..d6c3a6ca 100644 --- a/gst/rtp/gstasteriskh263.c +++ b/gst/rtp/gstasteriskh263.c @@ -204,8 +204,8 @@ gst_asteriskh263_chain (GstPad * pad, GstBuffer * buf) samples = timestamp - asteriskh263->lastts; asteriskh263->lastts = timestamp; - GST_ASTERISKH263_HEADER_TIMESTAMP (outbuf) = htonl (samples); - GST_ASTERISKH263_HEADER_LENGTH (outbuf) = htons (asterisk_len); + GST_ASTERISKH263_HEADER_TIMESTAMP (outbuf) = g_htonl (samples); + GST_ASTERISKH263_HEADER_LENGTH (outbuf) = g_htons (asterisk_len); /* copy the data into place */ memcpy (GST_BUFFER_DATA (outbuf) + GST_ASTERISKH263_HEADER_LEN, payload, -- cgit