[longomatch] Guess the source type from the combobox and set in the capturer properties
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Guess the source type from the combobox and set in the capturer properties
- Date: Tue, 8 Jun 2010 21:47:47 +0000 (UTC)
commit 58ffbf3d7140aa6b539b0f7ac9f8b31d3163d327
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Jun 5 19:16:50 2010 +0200
Guess the source type from the combobox and set in the capturer properties
LongoMatch/Gui/Component/ProjectDetailsWidget.cs | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 203f6c6..1ede91c 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -61,6 +61,8 @@ namespace LongoMatch.Gui.Component
private const string MP4 = "MP4 (H264 + AAC)";
private const string OGG = "OGG (Theora + Vorbis)";
private const string WEBM= "WebM (VP8 + Vorbis)";
+ private const string DV_SOURCE = "DV Source";
+ private const string GCONF_SOURCE = "GConf Source";
public ProjectDetailsWidget()
@@ -285,6 +287,10 @@ namespace LongoMatch.Gui.Component
s.Muxer = VideoMuxerType.WebM;
break;
}
+ if (devicecombobox.ActiveText.Contains (Catalog.GetString(GCONF_SOURCE)))
+ s.SourceType = CapturerType.WEBCAM;
+ else
+ s.SourceType = CapturerType.DVCAM;
return s;
}
}
@@ -439,9 +445,9 @@ namespace LongoMatch.Gui.Component
string deviceName;
if (Environment.OSVersion.Platform == PlatformID.Unix){
if ((int)device[1] == (int)CapturerType.DVCAM)
- deviceElement = Catalog.GetString("DV camera");
+ deviceElement = Catalog.GetString(DV_SOURCE);
else
- deviceElement = Catalog.GetString("GConf Source");
+ deviceElement = Catalog.GetString(GCONF_SOURCE);
} else
deviceElement = Catalog.GetString("DirectShow Source");
deviceName = ((string)device[0] == "") ? Catalog.GetString("Unknown"): (string)device [0];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]