[chronojump] Fixed video exists? on encoder
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed video exists? on encoder
- Date: Tue, 30 Sep 2014 11:21:53 +0000 (UTC)
commit bbf6ee3b449a6d7c24b7889bd420353461cbe17e
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Sep 30 13:21:33 2014 +0200
Fixed video exists? on encoder
src/sqlite/encoder.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/sqlite/encoder.cs b/src/sqlite/encoder.cs
index 476e3d3..5911ee4 100644
--- a/src/sqlite/encoder.cs
+++ b/src/sqlite/encoder.cs
@@ -225,6 +225,12 @@ class SqliteEncoder : Sqlite
Enum.Parse(typeof(Constants.EncoderConfigurationNames), strFull[0]) );
econf.FromSQL(strFull);
+ //if there's no video, will be "".
+ //if there's video, will be with full path
+ string videoURL = "";
+ if(reader[14].ToString() != "")
+ videoURL = addURLpath(fixOSpath(reader[14].ToString()));
+
//Log.WriteLine(econf.ToString(":", true));
es = new EncoderSQL (
reader[0].ToString(), //uniqueID
@@ -241,7 +247,7 @@ class SqliteEncoder : Sqlite
Convert.ToInt32(reader[11].ToString()), //minHeight
reader[12].ToString(), //description
reader[13].ToString(), //status
- addURLpath(fixOSpath(reader[14].ToString())), //videoURL
+ videoURL, //videoURL
econf, //encoderConfiguration
Util.ChangeDecimalSeparator(reader[16].ToString()), //future1
(meanPower on curves)
reader[17].ToString(), //future2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]