videoplayback/videohelix/src/mpxvideoseeker.cpp
branchRCL_3
changeset 9 5294c000a26d
parent 0 96612d01cf9f
child 11 8970fbd719ec
--- a/videoplayback/videohelix/src/mpxvideoseeker.cpp	Fri Mar 12 15:43:00 2010 +0200
+++ b/videoplayback/videohelix/src/mpxvideoseeker.cpp	Mon Mar 15 12:40:47 2010 +0200
@@ -15,7 +15,7 @@
  *
 */
 
-// Version : %version: 7 %
+// Version : %version: 8 %
 
 
 // INCLUDE FILES
@@ -128,7 +128,7 @@
 
     TInt trickplaySpeed = KDefaultTrickPlaySpeed;
 
-    if ( !iForward )
+    if ( ! iForward )
     {
         trickplaySpeed *= -1;
     }
@@ -152,16 +152,22 @@
         iIncrements *= -1;
     }
 
-    iSeekTimer->Start( 0,
-                       interval,
-                       TCallBack( CMPXVideoSeeker::UpdatePosition, this ) );
+    if ( ! iSeekTimer->IsActive() )
+    {
+        iSeekTimer->Start( 0,
+                           interval,
+                           TCallBack( CMPXVideoSeeker::UpdatePosition, this ) );
+    }
 #endif
 
     if ( err == KErrNone )
     {
-        iTrickPlayTimer->Start( KTrickPlayTimeout,
-                                0,
-                                TCallBack( CMPXVideoSeeker::StopTrickPlay, this ) );
+        if ( ! iTrickPlayTimer->IsActive() )
+        {
+            iTrickPlayTimer->Start( KTrickPlayTimeout,
+                                    0,
+                                    TCallBack( CMPXVideoSeeker::StopTrickPlay, this ) );
+        }
     }
 }