summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-10-18 22:35:16 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-10-18 22:35:16 +0200
commitad3905c989d13b5a216643437d2152f8c0629bde (patch)
treead133a2416e612818fdc4f36b0ddf0fde4c4317e
parentb441dc34dc8273ab9ad417a6746e96f944d32dcd (diff)
fix warnings on Mac OSX
-rw-r--r--modules/gst/gst.c2
-rw-r--r--src/audio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gst/gst.c b/modules/gst/gst.c
index 301fe93..46973a4 100644
--- a/modules/gst/gst.c
+++ b/modules/gst/gst.c
@@ -37,7 +37,7 @@ struct ausrc_st {
void *arg; /**< Handler argument */
struct ausrc_prm prm; /**< Read parameters */
struct aubuf *aubuf; /**< Packet buffer */
- uint32_t psize; /**< Packet size in bytes */
+ size_t psize; /**< Packet size in bytes */
size_t sampc;
/* Gstreamer */
diff --git a/src/audio.c b/src/audio.c
index 1d7c71f..954dd72 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -334,7 +334,7 @@ static void encode_rtp_send(struct audio *a, struct autx *tx,
*/
frame_size = (tx->is_g722 ? sampc/2 : sampc) / tx->ac->ch;
- tx->ts += frame_size;
+ tx->ts += (uint32_t)frame_size;
out:
tx->marker = false;