rtpjitterbuffer: Check srcresult before waiting on the condition variable too
authorSebastian Dröge <sebastian@centricular.com>
Tue, 13 Apr 2021 08:30:51 +0000 (11:30 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Apr 2021 12:30:49 +0000 (12:30 +0000)
commit52ead086d9ad9baf0356c031b0075dc944d2b957
tree486cb35243fc87f30571df28309d158719a3b3dc
parentb289cc6788c2f545e15e54196cbdad1874b0e175
rtpjitterbuffer: Check srcresult before waiting on the condition variable too

It might've been set to FLUSHING between the last check and the waiting,
and in that case we'd be waiting here forever now.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/944>
gst/rtpmanager/gstrtpjitterbuffer.c