summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
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;