diff --git a/libgst/comp.c b/libgst/comp.c index 5761ea5..b1a27e8 100644 --- a/libgst/comp.c +++ b/libgst/comp.c @@ -722,6 +722,9 @@ _gst_execute_statements (tree_node temps, else printf ("%O\n", _gst_last_returned_value); +#if defined _WIN32 && !defined __CYGWIN__ + _flushall (); +#endif _gst_execution_tracing = save_execution; } if (quiet || _gst_verbosity < 3) diff --git a/libgst/gst-parse.c b/libgst/gst-parse.c index 08ddb37..f8bf684 100644 --- a/libgst/gst-parse.c +++ b/libgst/gst-parse.c @@ -585,13 +585,25 @@ parse_eval_definition (gst_parser *p) if (stmts && !_gst_had_error) { if (_gst_regression_testing) - printf ("\nExecution begins...\n"); + { + printf ("\nExecution begins...\n"); +#if defined _WIN32 && !defined __CYGWIN__ + _flushall (); +#endif + } _gst_execute_statements (tmps, stmts, UNDECLARED_TEMPORARIES, _gst_regression_testing); - if (_gst_regression_testing && !_gst_had_error) - printf ("returned value is %O\n", _gst_last_returned_value); + if (_gst_regression_testing) + { + if (!_gst_had_error) + printf ("returned value is %O\n", _gst_last_returned_value); +#if defined _WIN32 && !defined __CYGWIN__ + _flushall (); +#endif + } + _gst_had_error = false; }