seek: update slider only 25 times a second
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 8 Dec 2009 16:30:39 +0000 (17:30 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 8 Dec 2009 16:37:56 +0000 (17:37 +0100)
don't update the slider a 100 times a second, it's likely higher than the screen
framerate and just wastes cpu.

tests/examples/seek/seek.c

index 7e22871..19b8ab6 100644 (file)
@@ -57,7 +57,7 @@ GST_DEBUG_CATEGORY_STATIC (seek_debug);
 #define FILL_INTERVAL 100
 //#define UPDATE_INTERVAL 500
 //#define UPDATE_INTERVAL 100
-#define UPDATE_INTERVAL 10
+#define UPDATE_INTERVAL 40
 
 /* number of milliseconds to play for after a seek */
 #define SCRUB_TIME 100