summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */