summaryrefslogtreecommitdiffstats
path: root/stream/stream_memory.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-23 11:03:44 +0100
committerwm4 <wm4@nowhere>2019-12-23 11:03:44 +0100
commitaf6652004d5f712e140996a17c683d437f4b8bb3 (patch)
tree945bab9456a2394e6428ce4e516336a167fc4527 /stream/stream_memory.c
parentba45b67370a8881a2bdf80e510861a7a5d20bc31 (diff)
downloadmpv-af6652004d5f712e140996a17c683d437f4b8bb3.tar.bz2
mpv-af6652004d5f712e140996a17c683d437f4b8bb3.tar.xz
stream_concat, stream_memory: more stream_origin stuff
Make concat streams use the "worst" origin of its parts, which may or may not be what makes sense. stream_memory has no natural way to do this, so just add a vague comment.
Diffstat (limited to 'stream/stream_memory.c')
-rw-r--r--stream/stream_memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_memory.c b/stream/stream_memory.c
index 01246cf33f..7383ff4d6f 100644
--- a/stream/stream_memory.c
+++ b/stream/stream_memory.c
@@ -79,6 +79,8 @@ const stream_info_t stream_info_memory = {
.protocols = (const char*const[]){ "memory", "hex", NULL },
};
+// The data is copied.
+// Caller may need to set stream.stream_origin correctly.
struct stream *stream_memory_open(struct mpv_global *global, void *data, int len)
{
assert(len >= 0);