swfdec-gnome r222 - trunk/thumbnailer
- From: otte svn gnome org
- To: svn-commits-list gnome org
- Subject: swfdec-gnome r222 - trunk/thumbnailer
- Date: Wed, 30 Jul 2008 11:50:16 +0000 (UTC)
Author: otte
Date: Wed Jul 30 11:50:16 2008
New Revision: 222
URL: http://svn.gnome.org/viewvc/swfdec-gnome?rev=222&view=rev
Log:
fix swfdec_player_advance API change, too
Modified:
trunk/thumbnailer/swfdec-thumbnailer.c
Modified: trunk/thumbnailer/swfdec-thumbnailer.c
==============================================================================
--- trunk/thumbnailer/swfdec-thumbnailer.c (original)
+++ trunk/thumbnailer/swfdec-thumbnailer.c Wed Jul 30 11:50:16 2008
@@ -84,12 +84,14 @@
static const gulong max_runtime = 15 * 1000; /* 15 seconds per file */
gulong elapsed;
- elapsed = (gulong) (g_timer_elapsed (timer, NULL) * 1000);
- if (elapsed >= max_runtime)
- return FALSE;
-
- swfdec_player_set_maximum_runtime (player, max_runtime - elapsed);
- swfdec_player_advance (player, advance_msecs);
+ while (advance_msecs > 0) {
+ elapsed = (gulong) (g_timer_elapsed (timer, NULL) * 1000);
+ if (elapsed >= max_runtime)
+ return FALSE;
+
+ swfdec_player_set_maximum_runtime (player, max_runtime - elapsed);
+ advance_msecs -= swfdec_player_advance (player, advance_msecs);
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]