summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c
index 1d9da98cc1..a722d5e479 100644
--- a/subreader.c
+++ b/subreader.c
@@ -1091,7 +1091,8 @@ void subcp_open (stream_t *st)
free_cp_tmp = 1;
} else {
cp_tmp = enca_fallback;
- mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: enca faild, stream must be seakable.\n");
+ if (st)
+ mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: enca failed, stream must be seakable.\n");
}
}
#endif