=?utf-8?b?W3RvdGVtXSB1cmk6IEFkZCDigJgudHh04oCZIGFzIGFuIGF1dG9sb2FkaW5n?= =?utf-8?q?_subtitle_file_extension?=
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] uri: Add â.txtâ as an autoloading subtitle file extension
- Date: Wed, 4 Jan 2012 09:34:29 +0000 (UTC)
commit 667983c595f640e358a6e465c6fe879e4c7fbc85
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Jan 4 09:33:23 2012 +0000
uri: Add â.txtâ as an autoloading subtitle file extension
This should fix autoloading of subtitles which have a .txt extension.
Reported to me by e-mail.
src/totem-uri.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index eaa7a72..55f60cd 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -290,14 +290,15 @@ totem_setup_file_monitoring (Totem *totem)
totem);
}
-/* List from xine-lib's demux_sputext.c */
+/* List from xine-lib's demux_sputext.c. Keep in sync with the list in totem_setup_file_filters() in this file. */
static const char subtitle_ext[][4] = {
"sub",
"srt",
"smi",
"ssa",
"ass",
- "asc"
+ "asc",
+ "txt"
};
gboolean
@@ -534,7 +535,7 @@ totem_setup_file_filters (void)
gtk_file_filter_add_mime_type (filter_video, "application/x-cue");
g_object_ref_sink (filter_video);
- /* Subtitles files */
+ /* Subtitles files. Keep in sync with subtitle_ext in this file. */
filter_subs = gtk_file_filter_new ();
gtk_file_filter_set_name (filter_subs, _("Subtitle files"));
gtk_file_filter_add_mime_type (filter_subs, "application/x-subrip"); /* *.srt */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]