All pastes #792744 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-21 17:55 UTC
rendered paste body
Index: test/test.c
===================================================================
--- test/test.c	(revision 1064)
+++ test/test.c	(working copy)
@@ -84,6 +84,9 @@
 static int  CheckOptions( int argc, char ** argv );
 static int  HandleEvents( hb_handle_t * h );
 
+/* Only print the "Muxing..." message once */
+static int mux_report = 1;
+
 /****************************************************************************
  * hb_error_handler
  * 
@@ -1004,8 +1007,12 @@
 #define p s.param.muxing
         case HB_STATE_MUXING:
         {
-            fprintf( stdout, "\rMuxing: %.2f %%", 100.0 * p.progress );
-            fflush(stdout);
+            if (mux_report)
+            {
+                fprintf( stdout, "\rMuxing: this may take awhile." );
+                fflush(stdout);
+                mux_report = 0;
+            }
             break;
         }
 #undef p