diff --git a/stream/filters/slice_stream.h b/stream/filters/slice_stream.h index 990092be7b..ade0df52bf 100644 --- a/stream/filters/slice_stream.h +++ b/stream/filters/slice_stream.h @@ -57,7 +57,7 @@ class SliceStream : public Stream const void *getPtr() { return getPtr(0, length); } const void *getPtr(size_t size) { - void *ptr = getPtr(pos, size); + const void *ptr = getPtr(pos, size); seek(pos+size); return ptr; }