summaryrefslogtreecommitdiff
path: root/ext/jack
diff options
context:
space:
mode:
authorJon Nordby <jononor@gmail.com>2011-04-05 09:44:01 +0200
committerStefan Kost <ensonic@users.sf.net>2011-04-05 13:12:28 +0300
commitd68dd460845c55365172d506b9f52d38fa5464f5 (patch)
treec93509a917b56e76de53dfdfa91bd50ffd7533a4 /ext/jack
parent270dd376bc233bc8901d9c32201b863fb080a816 (diff)
jack: Fix build with jack 0.120.1
9544622674c0d0a3147a9b51145159b02eec68e9 checked for 0.120.2 and later, but the deprecation was introduced in 0.120.1
Diffstat (limited to 'ext/jack')
-rw-r--r--ext/jack/gstjackaudiosink.c4
-rw-r--r--ext/jack/gstjackaudiosrc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c
index 13f69b736..da1c4ac53 100644
--- a/ext/jack/gstjackaudiosink.c
+++ b/ext/jack/gstjackaudiosink.c
@@ -593,7 +593,7 @@ gst_jack_ring_buffer_delay (GstRingBuffer * buf)
{
GstJackAudioSink *sink;
guint i, res = 0;
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_latency_range_t range;
#else
guint latency;
@@ -604,7 +604,7 @@ gst_jack_ring_buffer_delay (GstRingBuffer * buf)
client = gst_jack_audio_client_get_client (sink->client);
for (i = 0; i < sink->port_count; i++) {
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_port_get_latency_range (sink->ports[i], JackPlaybackLatency, &range);
if (range.max > res)
res = range.max;
diff --git a/ext/jack/gstjackaudiosrc.c b/ext/jack/gstjackaudiosrc.c
index b4840574a..68d11f85a 100644
--- a/ext/jack/gstjackaudiosrc.c
+++ b/ext/jack/gstjackaudiosrc.c
@@ -604,7 +604,7 @@ gst_jack_ring_buffer_delay (GstRingBuffer * buf)
{
GstJackAudioSrc *src;
guint i, res = 0;
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_latency_range_t range;
#else
guint latency;
@@ -615,7 +615,7 @@ gst_jack_ring_buffer_delay (GstRingBuffer * buf)
client = gst_jack_audio_client_get_client (src->client);
for (i = 0; i < src->port_count; i++) {
-#ifdef HAVE_JACK_0_120_2
+#ifdef HAVE_JACK_0_120_1
jack_port_get_latency_range (src->ports[i], JackCaptureLatency, &range);
if (range.max > res)
res = range.max;