projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843cf07
)
alsasrc: Don't use driver timestamp if it's zero
author
Georg Lippitsch
<glippitsch@toolsonair.com>
Mon, 26 Feb 2018 13:25:40 +0000
(14:25 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 20 May 2019 12:22:30 +0000
(15:22 +0300)
Some alsa interfaces don't provide timestamps and thus always set the timestamp to zero.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/453
ext/alsa/gstalsasrc.c
patch
|
blob
|
history
diff --git
a/ext/alsa/gstalsasrc.c
b/ext/alsa/gstalsasrc.c
index 5fdf2dde73b9c55baa8c20579effa501eca42b52..c6a7b573b2ee2e7aa50c7d76a697ecbc80c63164 100644
(file)
--- a/
ext/alsa/gstalsasrc.c
+++ b/
ext/alsa/gstalsasrc.c
@@
-947,6
+947,10
@@
gst_alsasrc_get_timestamp (GstAlsaSrc * asrc)
/* get high resolution time stamp from driver */
snd_pcm_status_get_htstamp (status, &tstamp);
+
+ if (tstamp.tv_sec == 0 && tstamp.tv_nsec == 0)
+ return GST_CLOCK_TIME_NONE;
+
timestamp = GST_TIMESPEC_TO_TIME (tstamp);
/* max available frames sets the depth of the buffer */