[longomatch] When we are forced to upscale, propose the minimum supported resolution.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] When we are forced to upscale, propose the minimum supported resolution.
- Date: Wed, 21 Jan 2015 10:53:20 +0000 (UTC)
commit 0d1ad83526e106de7e1e47a4d4e40c6817120c0c
Author: Julien Moutte <julien fluendo com>
Date: Tue Jan 20 07:42:43 2015 -0500
When we are forced to upscale, propose the minimum supported resolution.
LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
index b335154..0a82ae7 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
@@ -77,6 +77,7 @@ namespace LongoMatch.Gui.Dialog
void FillStandards ()
{
int index = 0, active = 0;
+ VideoStandard min_std = null;
stdStore = new ListStore (typeof(string), typeof(VideoStandard));
foreach (VideoStandard std in supportedVideoStandards) {
@@ -87,6 +88,14 @@ namespace LongoMatch.Gui.Dialog
}
index ++;
}
+ if (min_std == null || std.Height < min_std.Height) {
+ min_std = std;
+ }
+ }
+ if (index == 0 && min_std != null) {
+ // No Video Standard matches the max Height of our video files, add the
smallest
+ // supported standard to the list.
+ stdStore.AppendValues (min_std.Name, min_std);
}
sizecombobox.Model = stdStore;
sizecombobox.Active = active;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]