summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-04 03:31:14 +0200
committerwm4 <wm4@nowhere>2012-08-04 19:59:55 +0200
commita425777b96a17483d06a4851c7e84ae7483aa754 (patch)
tree89677bb4d5f4a12fb8d351f1870f264c8e293580 /mplayer.c
parent714226b20ccd9b4b394201d37b3eeac17057ba88 (diff)
downloadmpv-a425777b96a17483d06a4851c7e84ae7483aa754.tar.bz2
mpv-a425777b96a17483d06a4851c7e84ae7483aa754.tar.xz
mplayer: fix invalid memory access in print_stream()
This is a regression introduced by commit 9c02ae7e95108.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index b1b78e6819..72d3babfe8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -425,7 +425,7 @@ static void print_stream(struct MPContext *mpctx, struct sh_stream *s)
mp_msg(MSGT_CPLAYER, MSGL_INFO, "%#x", format);
}
} else if (s->type == STREAM_SUB) {
- char t = ((sh_sub_t*)s)->type;
+ char t = s->sub->type;
const char *name = NULL;
switch (t) {
case 't': name = "SRT"; break;