diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-27 01:52:15 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-27 01:52:15 +0000 |
commit | b7dd962b658dd71ac94dda89110140bfd3dd63d2 (patch) | |
tree | 104f69f94383c1014b446f8a8f1ca6429d9b12b5 /src/xine-engine/xine.c | |
parent | 01fe9e47e5c03c959dd0428d439db3cc74e5a741 (diff) | |
download | xine-lib-b7dd962b658dd71ac94dda89110140bfd3dd63d2.tar.gz xine-lib-b7dd962b658dd71ac94dda89110140bfd3dd63d2.tar.bz2 |
return of ogg and vorbis, began implementing verbosity parameter
CVS patchset: 3034
CVS date: 2002/10/27 01:52:15
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 90afd3f0a..a4560e658 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.176 2002/10/26 22:08:08 guenter Exp $ + * $Id: xine.c,v 1.177 2002/10/27 01:52:15 guenter Exp $ * * top-level xine functions * @@ -606,7 +606,8 @@ xine_t *xine_new (void) { printf ("xine: failed to malloc xine_t\n"); abort(); } - + + this->verbosity = 0; #ifdef ENABLE_NLS /* @@ -875,11 +876,13 @@ void xine_log (xine_t *this, int buf, const char *format, ...) { this->log_buffers[buf]->scratch_printf (this->log_buffers[buf], format, argp); va_end (argp); - va_start (argp, format); + if (this->verbosity) { + va_start (argp, format); - vprintf (format, argp); + vprintf (format, argp); - va_end (argp); + va_end (argp); + } } const char *const *xine_get_log (xine_t *this, int buf) { |