From 35566de75a2fd383a0c922835ee99e2b9a66af5c Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sat, 8 Jan 2011 13:31:10 +0000 Subject: [PATCH] Fix the remaining part of bug #607228, which completes the set of video file extensions for use in the video list of the subtitle File Open dialog. --- gnome-subtitles.mdp | 3 ++- src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gnome-subtitles.mdp b/gnome-subtitles.mdp index 3c1c826..4a1bed8 100644 --- a/gnome-subtitles.mdp +++ b/gnome-subtitles.mdp @@ -2,6 +2,7 @@ + @@ -259,8 +260,8 @@ + - \ No newline at end of file diff --git a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs index 4cd6609..7c765fc 100644 --- a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs +++ b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs @@ -1,6 +1,6 @@ /* * This file is part of Gnome Subtitles. - * Copyright (C) 2007-2009 Pedro Castro + * Copyright (C) 2007-2011 Pedro Castro * * Gnome Subtitles is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ using System.Text.RegularExpressions; namespace GnomeSubtitles.Ui.VideoPreview { public class VideoFiles { - private static Regex videoFilesRegex = new Regex(@"^.*\.((avi)|(mpeg)|(mpg)|(mp4)|(ogm)|(divx)|(xvid)|(mov)|(ogg)|(mkv))$"); + private static Regex videoFilesRegex = new Regex(@"^.*\.((3g2)|(3gp)|(asf)|(avi)|(bdm)|(cpi)|(divx)|(flv)|(m4v)|(mkv)|(mod)|(mov)|(mp3)|(mp4)|(mpeg)|(mpg)|(mts)|(ogg)|(ogm)|(rm)|(rmvb)|(spx)|(vob)|(wav)|(wma)|(wmv)|(xvid))$"); /* Public methods */ -- 2.11.4.GIT