Commit 33a1df5a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

memstream: return error when we know it occurred

parent 65187c07
......@@ -109,7 +109,7 @@ int vlc_memstream_open(struct vlc_memstream *ms)
if (unlikely(ms->ptr == NULL))
ms->error = EOF;
ms->length = 0;
return 0;
return ms->error;
int vlc_memstream_flush(struct vlc_memstream *ms)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment