summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-19 00:22:43 +0100
committerwm4 <wm4@nowhere>2012-11-20 18:00:15 +0100
commit9085b85729bb8eb8e4b96195f651308e912b443f (patch)
treee90bb743530d04dfe053ad46ec5451756a1009e2 /stream/stream.h
parentefaa73cc7333cee40555a61f7bd829c6deb64e63 (diff)
downloadmpv-9085b85729bb8eb8e4b96195f651308e912b443f.tar.bz2
mpv-9085b85729bb8eb8e4b96195f651308e912b443f.tar.xz
stream: fix dvd:// + cache crashing
The language string was dynamically allocated, which completely fails if the cache is forked (which it usually is). Change it back to a fixed length string, like the original code had it.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 9bb6da749b..87cb6c64db 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -100,7 +100,7 @@
struct stream_lang_req {
int type; // STREAM_AUDIO, STREAM_SUB
int id;
- char *name;
+ char name[50];
};
typedef enum {