Author: abrander
Date: 2009-10-19 22:26:20 +0200 (Mon, 19 Oct 2009)
New Revision: 2727
Modified:
trunk/librawstudio/rs-filter.c
Log:
Fixed duration calculation in rs_filter_get_image() and rs_filter_get_image8().
Modified: trunk/librawstudio/rs-filter.c
===================================================================
--- trunk/librawstudio/rs-filter.c 2009-10-19 17:49:59 UTC (rev 2726)
+++ trunk/librawstudio/rs-filter.c 2009-10-19 20:26:20 UTC (rev 2727)
@@ -228,6 +228,8 @@
g_assert(RS_IS_IMAGE16(image) || (image == NULL));
}
+ last_elapsed += elapsed;
+
count--;
if (count == -1)
{
@@ -237,8 +239,6 @@
g_timer_destroy(gt);
}
- last_elapsed += elapsed;
-
if (image)
g_object_unref(image);
@@ -294,6 +294,8 @@
printf("\n");
}
+ last_elapsed += elapsed;
+
g_assert(GDK_IS_PIXBUF(image) || (image == NULL));
count--;
@@ -304,7 +306,7 @@
printf("Complete chain took:
\033[32m%.0f\033[0mms\n\n", g_timer_elapsed(gt, NULL)*1000.0);
g_timer_destroy(gt);
}
- last_elapsed += elapsed;
+
if (image)
g_object_unref(image);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit