[gst-cvs] gstreamer: Tim-Philipp Müller : tools: print normal output to stdout, and only errors and warnings to stderr in gst-launch
Tim Mueller
tpm at kemper.freedesktop.org
Thu Feb 19 05:00:29 PST 2009
Module: gstreamer
Branch: master
Commit: a0d6d1f08cb762fc4cfed8e9e8fea8d77d294410
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=a0d6d1f08cb762fc4cfed8e9e8fea8d77d294410
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Thu Feb 19 12:57:17 2009 +0000
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.
---
tools/gst-launch.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
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);
More information about the Gstreamer-commits
mailing list