From: Tim-Philipp Müller Date: Thu, 19 Feb 2009 12:57:17 +0000 (+0000) Subject: tools: print normal output to stdout, and only errors and warnings to stderr in gst... X-Git-Tag: RELEASE-0.10.23~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0d6d1f08cb762fc4cfed8e9e8fea8d77d294410;p=platform%2Fupstream%2Fgstreamer.git tools: print normal output to stdout, and only errors and warnings to stderr in gst-launch Let's not print everything to stderr. Suppress some more 'normal' messages when --quiet was passed. --- diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 5678668..4ec0484 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -64,7 +64,7 @@ static gboolean messages = FALSE; static gboolean is_live = FALSE; /* convenience macro so we don't have to litter the code with if(!quiet) */ -#define PRINT if(!quiet)g_printerr +#define PRINT if(!quiet)g_print #ifndef GST_DISABLE_LOADSAVE static GstElement * @@ -508,7 +508,7 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state) /* ignore when we are buffering since then we mess with the states * ourselves. */ if (buffering) { - g_printerr (_("Prerolled, waiting for buffering to finish...\n")); + PRINT (_("Prerolled, waiting for buffering to finish...\n")); break; } @@ -551,7 +551,7 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state) } case GST_MESSAGE_LATENCY: { - g_printerr (_("Redistribute latency...\n")); + PRINT (_("Redistribute latency...\n")); gst_bin_recalculate_latency (GST_BIN (pipeline)); break; } @@ -562,7 +562,7 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state) gst_message_parse_request_state (message, &state); - g_printerr (_("Setting state to %s as requested by %s...\n"), + PRINT (_("Setting state to %s as requested by %s...\n"), gst_element_state_get_name (state), name); gst_element_set_state (pipeline, state);