Skip to content

memstream: make the error handling private

Steve Lhomme requested to merge robUx4/vlc:memstream_tight into master

We can use a special value in length to signal an error internally. The length (and pointer) are only supposed to be valid on success.

We can use less memory for the memstream on platforms where open_memstream is not supported.

Extracted from !4590

Merge request reports