mplayer: fix invalid memory access in print_stream()

This is a regression introduced by commit 9c02ae7e95.
This commit is contained in:
wm4 2012-08-04 03:31:14 +02:00
parent 714226b20c
commit a425777b96
1 changed files with 1 additions and 1 deletions

View File

@ -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;