[longomatch] Only seek to 0 when the file does not change



commit e74226d656b381204c3ad1fd8ac1b0515adf9da7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Oct 10 14:56:25 2014 +0200

    Only seek to 0 when the file does not change

 LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 36edd55..ecf1c0c 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -374,9 +374,10 @@ namespace LongoMatch.Gui
                                        Log.Exception (ex);
                                        //We handle this error async
                                }
-                       }
-                       if (seek) {
-                               Seek (new Time (0), true);
+                       } else {
+                               if (seek) {
+                                       Seek (new Time (0), true);
+                               }
                        }
                        detachbutton.Sensitive = true;
                }


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