[gnome-subtitles] Fixed handling of video files with special characters like ":" (fixes #608631)
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Fixed handling of video files with special characters like ":" (fixes #608631)
- Date: Sun, 31 Jan 2010 22:59:13 +0000 (UTC)
commit 55dbc38f08a62d05a076e3c0a334e37e902bae30
Author: Pedro Castro <mail>
Date: Sun Jan 31 22:58:47 2010 +0000
Fixed handling of video files with special characters like ":" (fixes #608631)
src/GnomeSubtitles/Dialog/FileOpenDialog.cs | 2 +-
src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Dialog/FileOpenDialog.cs b/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
index 90ce5fa..b7be207 100644
--- a/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
+++ b/src/GnomeSubtitles/Dialog/FileOpenDialog.cs
@@ -294,7 +294,7 @@ public class FileOpenDialog : GladeDialog {
if (videoComboBox.Active > 0) {
int videoFileIndex = videoComboBox.Active - 2;
- chosenVideoUri = new Uri(videoFiles[videoFileIndex] as string);
+ chosenVideoUri = new Uri("file://" + videoFiles[videoFileIndex] as string);
}
SetReturnValue(true);
}
diff --git a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
index 2fe0268..4cd6609 100644
--- a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
+++ b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
@@ -34,7 +34,7 @@ public class VideoFiles {
if ((path == null) || (path == String.Empty))
return videoFiles;
-
+
string[] allFiles = Directory.GetFiles(path, "*.*");
foreach (string file in allFiles) {
if (videoFilesRegex.IsMatch(file))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]