summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2017-03-27 18:14:54 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2017-03-29 16:45:12 +0300
commitda44fea1d170160efacaf0b87042d4228ef90c03 (patch)
treedfab4d28f778a78ba52006d1667a4fc80925f5af /ext
parent2be93e47ecd2617961f869db6f10abac2603adfc (diff)
downloadgstreamer-plugins-bad-da44fea1d170160efacaf0b87042d4228ef90c03.tar.gz
webrtcechoprobe: return from _read() early if the probe is not configured yet
https://bugzilla.gnome.org/show_bug.cgi?id=780642
Diffstat (limited to 'ext')
-rw-r--r--ext/webrtcdsp/gstwebrtcechoprobe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/webrtcdsp/gstwebrtcechoprobe.cpp b/ext/webrtcdsp/gstwebrtcechoprobe.cpp
index 5b811b6b3..a34fa5201 100644
--- a/ext/webrtcdsp/gstwebrtcechoprobe.cpp
+++ b/ext/webrtcdsp/gstwebrtcechoprobe.cpp
@@ -277,7 +277,8 @@ gst_webrtc_echo_probe_read (GstWebrtcEchoProbe * self, GstClockTime rec_time,
GST_WEBRTC_ECHO_PROBE_LOCK (self);
- if (!GST_CLOCK_TIME_IS_VALID (self->latency))
+ if (!GST_CLOCK_TIME_IS_VALID (self->latency) ||
+ !GST_AUDIO_INFO_IS_VALID (&self->info))
goto done;
/* In delay agnostic mode, just return 10ms of data */