diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2008-04-25 13:31:48 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2008-04-25 13:31:48 +0000 |
commit | 327741a21a1b1fcadc37e3aa1f294b12d8ba8f30 (patch) | |
tree | 86cf2cb7c9fd877bcc40ff7c85ac5d188bb2ac86 /gst/rtp/gstasteriskh263.c | |
parent | 883d93df58691c941822e2ca9077a7c23fb74492 (diff) |
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).
Diffstat (limited to 'gst/rtp/gstasteriskh263.c')
-rw-r--r-- | gst/rtp/gstasteriskh263.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |