[vlc-devel] [RFC] remove .txt from subs autodetection

Jean-Baptiste Kempf jb at videolan.org
Mon Nov 15 23:10:12 CET 2010


Opinions?

This lead to way too many false positive and complaints when VLC tried
to open a .txt file that had nothing to do with a subtitle
---
 src/input/subtitles.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/subtitles.c b/src/input/subtitles.c
index 9c6843d..ed3f7c7 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -57,7 +57,7 @@ static const char const sub_exts[][6] = {
     "idx", "sub",  "srt",
     "ssa", "ass",  "smi",
     "utf", "utf8", "utf-8",
-    "txt", "rt",   "aqt",
+    "rt",   "aqt",
     "usf", "jss",  "cdg",
     "psb", "mpsub","mpl2",
     "pjs", "dks",
-- 
JB





More information about the vlc-devel mailing list