diff options
author | wm4 <wm4@nowhere> | 2012-08-04 03:31:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-04 19:59:55 +0200 |
commit | a425777b96a17483d06a4851c7e84ae7483aa754 (patch) | |
tree | 89677bb4d5f4a12fb8d351f1870f264c8e293580 /mplayer.c | |
parent | 714226b20ccd9b4b394201d37b3eeac17057ba88 (diff) | |
download | mpv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |