[longomatch/livecapturemerged: 83/84] Fix inverted height width values in file properties



commit c7ad39665420aff52376532f1c3a39a617d3fd7c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue May 11 02:23:26 2010 +0200

    Fix inverted height width values in file properties

 CesarPlayer/Utils/MediaFile.cs        |    4 ++--
 CesarPlayer/Utils/PreviewMediaFile.cs |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/CesarPlayer/Utils/MediaFile.cs b/CesarPlayer/Utils/MediaFile.cs
index cf95adf..9cc8b21 100644
--- a/CesarPlayer/Utils/MediaFile.cs
+++ b/CesarPlayer/Utils/MediaFile.cs
@@ -148,8 +148,8 @@ namespace LongoMatch.Video.Utils
 					videoCodec = (string) reader.GetMetadata(MetadataType.VideoEncoderType);	
 					fps = (int) reader.GetMetadata(MetadataType.Fps);
 				}			
-				height = (int) reader.GetMetadata(MetadataType.DimensionY);
-				width = (int) reader.GetMetadata (MetadataType.DimensionX);
+				height = (int) reader.GetMetadata(MetadataType.DimensionX);
+				width = (int) reader.GetMetadata (MetadataType.DimensionY);
 								
 				return new MediaFile(filePath,duration*1000,(ushort)fps,hasAudio,hasVideo,videoCodec,audioCodec,(uint)height,(uint)width);
 		
diff --git a/CesarPlayer/Utils/PreviewMediaFile.cs b/CesarPlayer/Utils/PreviewMediaFile.cs
index 1d50e0b..0fd512d 100644
--- a/CesarPlayer/Utils/PreviewMediaFile.cs
+++ b/CesarPlayer/Utils/PreviewMediaFile.cs
@@ -101,8 +101,8 @@ namespace LongoMatch.Video.Utils
 						duration = (int)reader.GetMetadata(MetadataType.Duration);
 					thumbnailer.Dispose();
 				}			
-				height = (int) reader.GetMetadata(MetadataType.DimensionY);
-				width = (int) reader.GetMetadata (MetadataType.DimensionX);
+				height = (int) reader.GetMetadata(MetadataType.DimensionX);
+				width = (int) reader.GetMetadata (MetadataType.DimensionY);
 				reader.Close();	
 				reader.Dispose();	
 				



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