gst/bufferpool: only resize in reset when maxsize is larger
authorMatthew Waters <matthew@centricular.com>
Mon, 20 Jul 2020 07:08:32 +0000 (17:08 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 21 Jul 2020 13:31:17 +0000 (23:31 +1000)
commita1b41b2b2493069365a8274c6a544e6799a5a8df
tree1792dea2594bfe0ec7e8dde41796b1782836c14e
parent056cad44c36895a6605ac1e393c917d25378d27d
gst/bufferpool: only resize in reset when maxsize is larger

Only resize the buffer if the maxsize is larger then the configued pool
size.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/570>
gst/gstbufferpool.c