bufferpool: unblock acquire thread when we discard buffer

else the acquire thread will wait infinitely.
The deadlock showed in prevous unit test commit. This will fix it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/470>
This commit is contained in:
Xu Guangxin 2020-05-07 21:06:18 +08:00 committed by GStreamer Merge Bot
parent 8a58d67709
commit 003b25f39d

View file

@ -1326,6 +1326,7 @@ not_writable:
discard:
{
do_free_buffer (pool, buffer);
gst_poll_write_control (pool->priv->poll);
return;
}
}