Fixed bug in FIFOInputStream::createShared() which did not pass the parameter to the constructor.

This commit is contained in:
Benedikt-Alexander Mokroß 2021-08-19 09:03:46 +02:00
parent 67755cf00b
commit 340212ba89

View File

@ -48,10 +48,10 @@ class FIFOInputStream : public BufferedInputStream, public WriteCallback {
* Constructor.
* @param data - buffer.
*/
FIFOInputStream(v_buff_size initialSize = 2048);
FIFOInputStream(v_buff_size initialSize = 4096);
static std::shared_ptr<FIFOInputStream> createShared(v_buff_size initialSize = 2048) {
return std::make_shared<FIFOInputStream>(2048);
static std::shared_ptr<FIFOInputStream> createShared(v_buff_size initialSize = 4096) {
return std::make_shared<FIFOInputStream>(initialSize);
}
/**