diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2006-09-10 19:33:53 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2006-09-10 19:33:53 +0000 |
commit | 9246aac64ffa5dd71aa0b28fc63cc59a3305b552 (patch) | |
tree | ea75c48f70b3feb2a34c07cb7701bf5569f89c08 /src/xine-engine | |
parent | abd545bbb37d5bf4b2a2d686a2e622fd6b8a6db3 (diff) | |
download | xine-lib-9246aac64ffa5dd71aa0b28fc63cc59a3305b552.tar.gz xine-lib-9246aac64ffa5dd71aa0b28fc63cc59a3305b552.tar.bz2 |
Allow xine-lib to compile with gcc 4.1.1.
dsputil_mmx.c patch taked from gentoo portage.
CVS patchset: 8216
CVS date: 2006/09/10 19:33:53
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/xine.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index d8ca81d4a..a821a3c26 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.329 2006/09/09 19:35:40 dgp85 Exp $ + * $Id: xine.c,v 1.330 2006/09/10 19:33:53 jcdutton Exp $ */ /* @@ -1959,13 +1959,15 @@ void xine_log (xine_t *this, int buf, const char *format, ...) { } } -void xine_vlog(xine_t *this, int buf, const char *format, - va_list args) -{ +void xine_vlog(xine_t *this, int buf, const char *format, ...) { + va_list argp; + if ( ! this->log_buffers[buf] ) this->log_buffers[buf] = _x_new_scratch_buffer(150); - this->log_buffers[buf]->scratch_printf(this->log_buffers[buf], format, args); + va_start (argp, format); + this->log_buffers[buf]->scratch_printf(this->log_buffers[buf], format, argp); + va_end(argp); } const char *const *xine_get_log (xine_t *this, int buf) { |