diff options
Diffstat (limited to 'src/libdts')
-rw-r--r-- | src/libdts/xine_decoder.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libdts/xine_decoder.c b/src/libdts/xine_decoder.c index 4b6881bd6..0023eaabe 100644 --- a/src/libdts/xine_decoder.c +++ b/src/libdts/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.31 2002/11/12 21:34:46 mroi Exp $ + * $Id: xine_decoder.c,v 1.32 2002/11/20 11:57:43 mroi Exp $ * * 04-09-2001 DTS passtrough (C) Joachim Koenig * 09-12-2001 DTS passthrough inprovements (C) James Courtier-Dutton @@ -95,7 +95,8 @@ void dts_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { return; } if (!this->output_open) { - this->output_open = (this->stream->audio_out->open (this->stream->audio_out, this->bits_per_sample, + this->output_open = (this->stream->audio_out->open (this->stream->audio_out, this->stream, + this->bits_per_sample, this->rate, AO_CAP_MODE_AC5)); } @@ -211,14 +212,14 @@ void dts_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { if( ac5_pcm_length ) swab(data_in, &data_out[8], ac5_length ); - this->stream->audio_out->put_buffer (this->stream->audio_out, audio_buffer); + this->stream->audio_out->put_buffer (this->stream->audio_out, audio_buffer, this->stream); } } static void dts_dispose (audio_decoder_t *this_gen) { dts_decoder_t *this = (dts_decoder_t *) this_gen; if (this->output_open) - this->stream->audio_out->close (this->stream->audio_out); + this->stream->audio_out->close (this->stream->audio_out, this->stream); this->output_open = 0; free (this); } @@ -282,6 +283,6 @@ static decoder_info_t dec_info_audio = { plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_AUDIO_DECODER, 11, "dts", XINE_VERSION_CODE, &dec_info_audio, init_plugin }, + { PLUGIN_AUDIO_DECODER, 12, "dts", XINE_VERSION_CODE, &dec_info_audio, init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |