summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulsesrc.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-07-29 12:13:20 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-07-29 12:13:20 +0200
commit9c341347ba8d9d8d77e45cbf32e8ef3b4fedad97 (patch)
tree8a0431b32e3d526da34655d13ba9bd62098d8e95 /ext/pulse/pulsesrc.c
parent2d88251d9d90aafab7e6e953a6627530e681e2de (diff)
pulse: conditionally compile newer stuff
configured_sink/source_usec in the timing_info is only since 0.9.11 so conditionally compile this information. fixes #590038
Diffstat (limited to 'ext/pulse/pulsesrc.c')
-rw-r--r--ext/pulse/pulsesrc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c
index a257908c..cef1a8b8 100644
--- a/ext/pulse/pulsesrc.c
+++ b/ext/pulse/pulsesrc.c
@@ -521,15 +521,22 @@ gst_pulsesrc_stream_latency_update_cb (pa_stream * s, void *userdata)
{
GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (userdata);
const pa_timing_info *info;
+ pa_usec_t source_usec;
info = pa_stream_get_timing_info (s);
+#if HAVE_PULSE_0_9_11
+ source_usec = info->configured_source_usec;
+#else
+ source_usec = 0;
+#endif
+
GST_LOG_OBJECT (pulsesrc,
"latency_update, %" G_GUINT64_FORMAT ", %d:%" G_GINT64_FORMAT ", %d:%"
G_GUINT64_FORMAT ", %" G_GUINT64_FORMAT ", %" G_GUINT64_FORMAT,
GST_TIMEVAL_TO_TIME (info->timestamp), info->write_index_corrupt,
info->write_index, info->read_index_corrupt, info->read_index,
- info->source_usec, info->configured_source_usec);
+ info->source_usec, source_usec);
}
static void