mirror of https://github.com/mpv-player/mpv
mplayer: fix invalid memory access in print_stream()
This is a regression introduced by commit 9c02ae7e95
.
This commit is contained in:
parent
714226b20c
commit
a425777b96
|
@ -425,7 +425,7 @@ static void print_stream(struct MPContext *mpctx, struct sh_stream *s)
|
||||||
mp_msg(MSGT_CPLAYER, MSGL_INFO, "%#x", format);
|
mp_msg(MSGT_CPLAYER, MSGL_INFO, "%#x", format);
|
||||||
}
|
}
|
||||||
} else if (s->type == STREAM_SUB) {
|
} else if (s->type == STREAM_SUB) {
|
||||||
char t = ((sh_sub_t*)s)->type;
|
char t = s->sub->type;
|
||||||
const char *name = NULL;
|
const char *name = NULL;
|
||||||
switch (t) {
|
switch (t) {
|
||||||
case 't': name = "SRT"; break;
|
case 't': name = "SRT"; break;
|
||||||
|
|
Loading…
Reference in New Issue