From e76d60c53d666cc42408bcea5e4060ac173798dd Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Wed, 26 Nov 2003 23:44:08 +0000 Subject: xprintf clean pass. xprintf now log into new XINE_LOG_TRACE log buffer. scratch buffer enhancement (thanks Thibaut for the malloc tips), enlarge log buffer from 25 lines (very useless), to 150 (better). CVS patchset: 5801 CVS date: 2003/11/26 23:44:08 --- src/audio_out/audio_sun_out.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/audio_out/audio_sun_out.c') diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 07835a455..9e7587398 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.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: audio_sun_out.c,v 1.30 2003/10/06 15:27:10 mroi Exp $ + * $Id: audio_sun_out.c,v 1.31 2003/11/26 23:44:08 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -412,12 +412,10 @@ static int ao_sun_open(ao_driver_t *this_gen, int pass; int ok; - if (this->xine->verbosity >= XINE_VERBOSITY_LOG) - printf ("audio_sun_out: ao_sun_open rate=%d, mode=%d\n", rate, mode); + xprintf(this->xine, XINE_VERBOSITY_LOG, "audio_sun_out: ao_sun_open rate=%d, mode=%d\n", rate, mode); if ( (mode & this->capabilities) == 0 ) { - if (this->xine->verbosity >= XINE_VERBOSITY_LOG) - printf ("audio_sun_out: unsupported mode %08x\n", mode); + xprintf(this->xine, XINE_VERBOSITY_LOG, "audio_sun_out: unsupported mode %08x\n", mode); return 0; } @@ -544,8 +542,7 @@ static int ao_sun_open(ao_driver_t *this_gen, this->input_sample_rate, this->output_sample_rate); */ - if (this->xine->verbosity >= XINE_VERBOSITY_LOG) - printf ("audio_sun_out: %d channels output\n",this->num_channels); + xprintf(this->xine, XINE_VERBOSITY_LOG, "audio_sun_out: %d channels output\n",this->num_channels); return this->output_sample_rate; } @@ -894,8 +891,7 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v * find best device driver/channel */ - if (this->xine->verbosity >= XINE_VERBOSITY_LOG) - printf ("audio_sun_out: Opening audio device %s...\n", devname); + xprintf(this->xine, XINE_VERBOSITY_LOG, "audio_sun_out: Opening audio device %s...\n", devname); /* * open the device -- cgit v1.2.3