diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-07-09 05:47:44 +0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-07-09 05:49:12 +0300 |
commit | 241e0c272230e641622a51a33a8e66a6993a3452 (patch) | |
tree | bad1cfa047f1ec9b2cd1f8b1a657bec76e25ee2c | |
parent | 3edf9e4f582d5d4a5bf9412d4acacad01c7371c3 (diff) |
rtpjitterbuffer: fix build error with gcc (Debian 4.9.2-21) 4.9.2
Replace static constants with macros to make gcc happy
CC elements/elements_rtpjitterbuffer-rtpjitterbuffer.o
elements/rtpjitterbuffer.c:387:1: error: initializer element is not constant
static const GstClockTime PCMU_BUF_DURATION = PCMU_BUF_MS * GST_MSECOND;
^
elements/rtpjitterbuffer.c:388:1: error: initializer element is not constant
static const guint PCMU_BUF_SIZE = 64000 * PCMU_BUF_MS / 1000;
^
elements/rtpjitterbuffer.c:390:5: error: initializer element is not constant
PCMU_BUF_CLOCK_RATE * PCMU_BUF_MS / 1000;
-rw-r--r-- | tests/check/elements/rtpjitterbuffer.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/check/elements/rtpjitterbuffer.c b/tests/check/elements/rtpjitterbuffer.c index 920e26218..efbe161aa 100644 --- a/tests/check/elements/rtpjitterbuffer.c +++ b/tests/check/elements/rtpjitterbuffer.c @@ -380,14 +380,13 @@ GST_START_TEST (test_clear_pt_map) GST_END_TEST; -static const guint PCMU_BUF_CLOCK_RATE = 8000; -static const guint PCMU_BUF_PT = 0; -static const guint PCMU_BUF_SSRC = 0x01BADBAD; -static const guint PCMU_BUF_MS = 20; -static const GstClockTime PCMU_BUF_DURATION = PCMU_BUF_MS * GST_MSECOND; -static const guint PCMU_BUF_SIZE = 64000 * PCMU_BUF_MS / 1000; -static const guint PCMU_RTP_TS_DURATION = - PCMU_BUF_CLOCK_RATE * PCMU_BUF_MS / 1000; +#define PCMU_BUF_CLOCK_RATE 8000 +#define PCMU_BUF_PT 0 +#define PCMU_BUF_SSRC 0x01BADBAD +#define PCMU_BUF_MS 20 +#define PCMU_BUF_DURATION (PCMU_BUF_MS * GST_MSECOND) +#define PCMU_BUF_SIZE (64000 * PCMU_BUF_MS / 1000) +#define PCMU_RTP_TS_DURATION (PCMU_BUF_CLOCK_RATE * PCMU_BUF_MS / 1000) typedef struct { |