[longomatch] Show a different error message if the stream contains video but the lenght is 0



commit 1b3cb6cb353d6dd8ee0d5cf53ba5162f9acfbb37
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Apr 9 23:03:40 2010 +0200

    Show a different error message if the stream contains video but the lenght is 0

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index fe115db..beaa228 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -376,8 +376,12 @@ namespace LongoMatch.Gui.Component
 						md.Icon=Stetic.IconLoader.LoadIcon(this, "longomatch", Gtk.IconSize.Dialog, 48);
 						md.Show();
 						mFile = LongoMatch.Video.Utils.PreviewMediaFile.GetMediaFile(filename);
-						if (!mFile.HasVideo || mFile.Length == 0 || mFile.VideoCodec == "")
+						if (!mFile.HasVideo || mFile.VideoCodec == "")
 							throw new Exception(Catalog.GetString("This file doesn't contain a video stream."));
+						if (mFile.HasVideo && mFile.Length == 0)
+							throw new Exception(Catalog.GetString("This file contains a video stream but its length is 0."));
+						
+							
 						fileEntry.Text = filename;
 					}
 					catch (Exception ex) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]