diff options
| author | rofafor <rofafor> | 2012-01-08 11:16:33 +0000 |
|---|---|---|
| committer | rofafor <rofafor> | 2012-01-08 11:16:33 +0000 |
| commit | 137ae2f29b0b3701addf5b4216ee7600e926d14d (patch) | |
| tree | 5a6f2129fe0ea8d566ca2bae846184b325eba3d9 | |
| parent | f16bda0aa9aa57b9542e461a9376e80801350e85 (diff) | |
| download | xineliboutput-137ae2f29b0b3701addf5b4216ee7600e926d14d.tar.gz xineliboutput-137ae2f29b0b3701addf5b4216ee7600e926d14d.tar.bz2 | |
Fixed building against xine-lib-1.2.0.
| -rw-r--r-- | xine_post_audiochannel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xine_post_audiochannel.c b/xine_post_audiochannel.c index 4852c00f..16d5ad15 100644 --- a/xine_post_audiochannel.c +++ b/xine_post_audiochannel.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_post_audiochannel.c,v 1.7 2011-10-30 16:59:02 phintuka Exp $ + * $Id: xine_post_audiochannel.c,v 1.8 2012-01-08 11:16:33 rofafor Exp $ * */ @@ -70,7 +70,7 @@ typedef struct audioch_post_plugin_s /* * Port functions */ -#if XINE_VERSION_CODE < 10200 +#if XINE_VERSION_CODE <= 10200 static int audioch_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream, uint32_t bits, uint32_t rate, int mode) #else @@ -85,7 +85,7 @@ static int audioch_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream, _x_post_inc_usage(port); port->stream = stream; -#if XINE_VERSION_CODE < 10200 +#if XINE_VERSION_CODE <= 10200 port->bits = bits; port->rate = rate; port->mode = mode; @@ -112,7 +112,7 @@ static void audioch_port_put_buffer (xine_audio_port_t *port_gen, int i; if(this->channels == 2) { -#if XINE_VERSION_CODE < 10200 +#if XINE_VERSION_CODE <= 10200 int step = buf->format.bits / 8; #else int step = sample_bytes_table[buf->format.sample_format]; @@ -122,7 +122,7 @@ static void audioch_port_put_buffer (xine_audio_port_t *port_gen, newbuf->vpts = buf->vpts; newbuf->frame_header_count = buf->frame_header_count; newbuf->first_access_unit = buf->first_access_unit; -#if XINE_VERSION_CODE < 10200 +#if XINE_VERSION_CODE <= 10200 newbuf->format.bits = buf->format.bits; newbuf->format.rate = buf->format.rate; newbuf->format.mode = buf->format.mode; |
