diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2017-03-27 18:14:54 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2017-03-29 16:47:46 +0300 |
commit | 9dc64fbbaf47004070222181930d27ae0ff2ea29 (patch) | |
tree | ac9b738aabdc6ecbcca6fe1d4a54a2283e1bfe45 | |
parent | c77feb087c3f711e5cb013f5ce9e6823539877d2 (diff) | |
download | gstreamer-plugins-bad-9dc64fbbaf47004070222181930d27ae0ff2ea29.tar.gz |
webrtcechoprobe: return from _read() early if the probe is not configured yet
https://bugzilla.gnome.org/show_bug.cgi?id=780642
-rw-r--r-- | ext/webrtcdsp/gstwebrtcechoprobe.cpp | 3 |
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 */ |