summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-11-22 10:08:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2019-11-27 01:02:16 -0600
commitedefa0cdd8d0a83aeb6b545b1914a7a2a0bcbd30 (patch)
treefee376d7d37d7cd886caac745fe9f4f602d0644b /configure
parent4c4d573f9986a92aea6fea9febf39665a69f51c1 (diff)
downloadffmpeg-streaming-edefa0cdd8d0a83aeb6b545b1914a7a2a0bcbd30.zip
ffmpeg-streaming-edefa0cdd8d0a83aeb6b545b1914a7a2a0bcbd30.tar.gz
Detect HR timestamp compatible version of ALSA before using HR timestamp functions
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 1de90e9..9273076 100755
--- a/configure
+++ b/configure
@@ -2186,6 +2186,7 @@ SYSTEM_FEATURES="
SYSTEM_FUNCS="
access
aligned_malloc
+ alsa_hr_ts
arc4random
clock_gettime
closesocket
@@ -6515,8 +6516,15 @@ else
EOF
fi
-enabled alsa && { check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
- check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound; }
+if enabled alsa; then
+ check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
+ check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound
+ if check_type "alsa/asoundlib.h alsa/pcm.h" snd_pcm_tstamp_type_t; then
+ enable alsa_hr_ts
+ else
+ warn "High resolution timestamps not supported by your ALSA version. Streaming A/V sync may suffer!"
+ fi
+fi
enabled libjack &&
require_pkg_config libjack jack jack/jack.h jack_port_get_latency_range
OpenPOWER on IntegriCloud