audiobuffersplit: Don't try to output anything if samples_per_buffer == 0
authorSebastian Dröge <sebastian@centricular.com>
Fri, 23 Dec 2016 11:27:42 +0000 (13:27 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 23 Dec 2016 11:27:42 +0000 (13:27 +0200)
commit5cff156f2c44d323655455444ec266941dd98c2a
tree8971e7f8ad6ca38926486168992e85138ed9d500
parent4523cff1472bedeb3221a470c3f76fb7c24a6f7e
audiobuffersplit: Don't try to output anything if samples_per_buffer == 0

This happens if we had no CAPS event yet but e.g. got an EOS event. We
would then try to output a 0-sized buffer, but getting that from the
adapter will give an assertion, return NULL and then crash.
gst/audiobuffersplit/gstaudiobuffersplit.c