[gegl: 90/90] ui: do the debug seeking only if environment flag is set



commit dce07676823c11d76b0d8d5ed7b099bfb0bcb182
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Nov 21 00:35:32 2015 +0100

    ui: do the debug seeking only if environment flag is set

 bin/mrg-ui.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/bin/mrg-ui.c b/bin/mrg-ui.c
index 3deb2c7..c08136c 100644
--- a/bin/mrg-ui.c
+++ b/bin/mrg-ui.c
@@ -1008,11 +1008,12 @@ static void gegl_ui (Mrg *mrg, void *data)
   if (o->is_video)
    {
      o->frame_no++;
-#if 1
-     if ((o->frame_no / 200) % 2 == 1)
-       o->frame_no+=600;
+     if (g_getenv ("GEGL_UI_DEBUG_SEEK"))
+     {
+       if ((o->frame_no / 200) % 2 == 1)
+         o->frame_no+=600;
+     }
      fprintf (stderr, "\r%i", o->frame_no);
-#endif
      gegl_node_set (o->load, "frame", o->frame_no, NULL);
      mrg_queue_draw (o->mrg, NULL);
    }


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