Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 403473 | Differences between
and this patch

Collapse All | Expand All

(-)xineliboutput-1.0.5/xine_post_audiochannel.orig.c (-4 / +4 lines)
Lines 70-76 Link Here
70
/*
70
/*
71
 *    Port functions
71
 *    Port functions
72
 */
72
 */
73
#if XINE_VERSION_CODE < 10200
73
#if XINE_VERSION_CODE <= 10201
74
static int audioch_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream,
74
static int audioch_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream,
75
                             uint32_t bits, uint32_t rate, int mode)
75
                             uint32_t bits, uint32_t rate, int mode)
76
#else
76
#else
Lines 85-91 Link Here
85
  _x_post_inc_usage(port);
85
  _x_post_inc_usage(port);
86
  port->stream = stream;
86
  port->stream = stream;
87
#if XINE_VERSION_CODE < 10200
87
#if XINE_VERSION_CODE <= 10201
88
  port->bits = bits;
88
  port->bits = bits;
89
  port->rate = rate;
89
  port->rate = rate;
90
  port->mode = mode;
90
  port->mode = mode;
Lines 112-118 Link Here
112
  int i;
112
  int i;
113
  if(this->channels == 2) {
113
  if(this->channels == 2) {
114
#if XINE_VERSION_CODE < 10200
114
#if XINE_VERSION_CODE <= 10201
115
    int step = buf->format.bits / 8;
115
    int step = buf->format.bits / 8;
116
#else
116
#else
117
    int step = sample_bytes_table[buf->format.sample_format];
117
    int step = sample_bytes_table[buf->format.sample_format];
Lines 122-128 Link Here
122
    newbuf->vpts = buf->vpts;
122
    newbuf->vpts = buf->vpts;
123
    newbuf->frame_header_count = buf->frame_header_count;
123
    newbuf->frame_header_count = buf->frame_header_count;
124
    newbuf->first_access_unit = buf->first_access_unit;
124
    newbuf->first_access_unit = buf->first_access_unit;
125
#if XINE_VERSION_CODE < 10200
125
#if XINE_VERSION_CODE <= 10201
126
    newbuf->format.bits = buf->format.bits;
126
    newbuf->format.bits = buf->format.bits;
127
    newbuf->format.rate = buf->format.rate;
127
    newbuf->format.rate = buf->format.rate;
128
    newbuf->format.mode = buf->format.mode;
128
    newbuf->format.mode = buf->format.mode;

Return to bug 403473