[vlc-devel] [PATCH] subtitles: Add .txt as subtitle extention
Kamil Karpacz
kamilkarpacz96 at gmail.com
Mon Jan 4 23:14:59 UTC 2021
---
This patch should be also applied to 3.0.x version.
I don't know if ommiting .txt as a subtitle extention has been done on purpouse,
but for me as a user it was very annoying. To the point that I have decided to
correct it.
I normally drag and drop downloaded subtitles. It's not uncommon to see subtitles
as a .txt file and drag and dropping these onto video results in stopping the video
(adding these subtitles requires using "Add subtitles..." menu).
include/vlc_input_item.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index 9a01a80672..da804b669c 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -174,7 +174,7 @@ enum slave_priority
"psb", "rt", "sami", "sbv", \
"scc", "smi", "srt", \
"ssa", "stl", "sub", \
- "tt", "ttml", "usf", \
+ "tt", "ttml", "txt", "usf", \
"vtt", "webvtt"
#define SLAVE_AUDIO_EXTENSIONS \
--
2.25.1
More information about the vlc-devel
mailing list