diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-28 01:28:10 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-28 01:28:10 +0000 |
commit | 596bada7527edc65502fc7f3f52535d3e92554ba (patch) | |
tree | 453d95e3930c0a52cdd99e8b7b4c1f36ed58d2df /src/libac3/xine_decoder.c | |
parent | e0dafdff5dc592fb47151894a6db3ce0ae045e26 (diff) | |
download | xine-lib-596bada7527edc65502fc7f3f52535d3e92554ba.tar.gz xine-lib-596bada7527edc65502fc7f3f52535d3e92554ba.tar.bz2 |
use thread compliant signal handling. Fixed deadlock in xine_stop().
Fixed elementary demuxer (and perhaps mpgaudio too). Fix some
code error in ac3/xine_decoder.c.
CVS patchset: 87
CVS date: 2001/05/28 01:28:10
Diffstat (limited to 'src/libac3/xine_decoder.c')
-rw-r--r-- | src/libac3/xine_decoder.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libac3/xine_decoder.c b/src/libac3/xine_decoder.c index 5b9ab7ef6..065e2c4eb 100644 --- a/src/libac3/xine_decoder.c +++ b/src/libac3/xine_decoder.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_decoder.c,v 1.3 2001/05/27 23:48:12 guenter Exp $ + * $Id: xine_decoder.c,v 1.4 2001/05/28 01:28:11 f1rmb Exp $ * * stuff needed to turn libac3 into a xine decoder plugin */ @@ -105,8 +105,8 @@ void ac3dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { uint8_t *current = buf->content; uint8_t *end = buf->content + buf->size; ac3_frame_t *ac3_frame; - int sampling_rate; - int output_mode; +/* int sampling_rate; */ + int output_mode = AO_CAP_MODE_STEREO; uint8_t byte; @@ -215,13 +215,13 @@ void ac3dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { this->output_open = (this->audio_out->open (this->audio_out, 16, ac3_sampling_rate(this->frame_buffer), AO_CAP_MODE_AC3) == 1); - this->output_mode - AO_CAP_MODE_AC3; + this->output_mode = AO_CAP_MODE_AC3; } if (this->output_open) { this->audio_out->write_audio_data (this->audio_out, - this->frame_buffer, + (int16_t*)this->frame_buffer, this->frame_length, this->pts); this->pts = 0; |