[vlc-commits] memstream: return error when we know it occurred
Rémi Denis-Courmont
git at videolan.org
Sun Feb 26 14:05:29 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 26 15:05:16 2017 +0200| [33a1df5aaa3ef9d5a20da3f6ca5a8cda491d4027] | committer: Rémi Denis-Courmont
memstream: return error when we know it occurred
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33a1df5aaa3ef9d5a20da3f6ca5a8cda491d4027
---
src/text/memstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/text/memstream.c b/src/text/memstream.c
index 4af651f..5dba5f2 100644
--- a/src/text/memstream.c
+++ b/src/text/memstream.c
@@ -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)
More information about the vlc-commits
mailing list