webrtcechoprobe: return from _read() early if the probe is not configured yet

https://bugzilla.gnome.org/show_bug.cgi?id=780642
This commit is contained in:
George Kiagiadakis 2017-03-27 18:14:54 +03:00
parent 2be93e47ec
commit da44fea1d1

View file

@ -277,7 +277,8 @@ gst_webrtc_echo_probe_read (GstWebrtcEchoProbe * self, GstClockTime rec_time,
GST_WEBRTC_ECHO_PROBE_LOCK (self); 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; goto done;
/* In delay agnostic mode, just return 10ms of data */ /* In delay agnostic mode, just return 10ms of data */