From b27336b6d248c6705f6b693f86c245ff7b5a9717 Mon Sep 17 00:00:00 2001 From: albeu Date: Thu, 16 Mar 2006 19:16:07 +0000 Subject: And 10L for me. Fix the forgoten enca_fd. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17882 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subreader.c') diff --git a/subreader.c b/subreader.c index 387ba5fce8..fc7a9342b7 100644 --- a/subreader.c +++ b/subreader.c @@ -1086,7 +1086,7 @@ void subcp_open (stream_t *st) int free_cp_tmp = 0; if (sscanf(sub_cp, "enca:%2s:%99s", enca_lang, enca_fallback) == 2 || sscanf(sub_cp, "ENCA:%2s:%99s", enca_lang, enca_fallback) == 2) { - if (enca_fd) { + if (st) { cp_tmp = guess_cp(st, enca_lang, enca_fallback); free_cp_tmp = 1; } else { -- cgit v1.2.3