tools: use g_print*() instead of *printf() in gst-launch
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 19 Feb 2009 12:45:53 +0000 (12:45 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 19 Feb 2009 12:45:53 +0000 (12:45 +0000)
commit7edb00999554574b9ecf89191d05f69adcc7c78d
tree7b532da98f9efc901a1ed843174e9b2881934872
parentacb98b09389d150d6515dfc83541cf69baa6a0cf
tools: use g_print*() instead of *printf() in gst-launch

We should use GLib's g_print*() functions for printing stuff in gst-launch, not printf and friends, since we're printing
translated strings, which we get in UTF-8 encoding, and GLib's print functions expect UTF-8 encoded strings whereas printf
et al. expect strings in the locale encoding, which may or may not be UTF-8.

Also add a PRINT convenience macro so we don't have to litter the code with if (!quiet) statements.
tools/gst-launch.c