[longomatch] Remove unused variables



commit 77b550ee2e55a190ab8b8284e59549e9fd9024f9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Mar 28 01:23:27 2015 +0100

    Remove unused variables

 LongoMatch.Services/Services/PlayerController.cs |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs 
b/LongoMatch.Services/Services/PlayerController.cs
index b96d6f2..01e34cf 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -334,20 +334,18 @@ namespace LongoMatch.Services
 
                public void Seek (double pos)
                {
-                       Time seekPos, timePos, duration;
+                       Time seekPos;
                        bool accurate;
                        bool throthled;
 
                        Log.Debug (string.Format ("Seek relative to {0}", pos));
                        if (SegmentLoaded) {
-                               duration = loadedSegment.Stop - loadedSegment.Start;
-                               timePos = duration * pos;
-                               seekPos = loadedSegment.Start + timePos;
+                               Time duration = loadedSegment.Stop - loadedSegment.Start;
+                               seekPos = loadedSegment.Start + duration * pos;
                                accurate = true;
                                throthled = true;
                        } else {
-                               duration = streamLenght;
-                               seekPos = timePos = streamLenght * pos;
+                               seekPos = streamLenght * pos;
                                accurate = false;
                                throthled = false;
                        }


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