From a425777b96a17483d06a4851c7e84ae7483aa754 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Aug 2012 03:31:14 +0200 Subject: mplayer: fix invalid memory access in print_stream() This is a regression introduced by commit 9c02ae7e95108. --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') 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; -- cgit v1.2.3