[longomatch] Ensure using a file with a valid video stream for new projects
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Ensure using a file with a valid video stream for new projects
- Date: Tue, 6 Apr 2010 00:26:40 +0000 (UTC)
commit f4dcedf5d82b40f0beb7d46fddaf2f5b12ba1e4d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Apr 5 15:55:15 2010 +0200
Ensure using a file with a valid video stream for new projects
LongoMatch/Gui/Component/ProjectDetailsWidget.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 338e1fe..fe115db 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -376,6 +376,8 @@ 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 == "")
+ throw new Exception(Catalog.GetString("This file doesn't contain a video stream."));
fileEntry.Text = filename;
}
catch (Exception ex) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]