summaryrefslogtreecommitdiff
path: root/src/libdts
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-12-11 15:30:05 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-12-11 15:30:05 +0000
commit7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7 (patch)
tree58f548c3419ac4fee61fc00c5833002c400ccf43 /src/libdts
parent1416e359d0bfcb59d2021d3904b50dc55bbfe466 (diff)
downloadxine-lib-7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7.tar.gz
xine-lib-7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7.tar.bz2
audio_decoder->reset() on discontinuities
CVS patchset: 1221 CVS date: 2001/12/11 15:30:05
Diffstat (limited to 'src/libdts')
-rw-r--r--src/libdts/xine_decoder.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libdts/xine_decoder.c b/src/libdts/xine_decoder.c
index 442229668..2c0c5a419 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.9 2001/12/10 12:31:09 jkeil Exp $
+ * $Id: xine_decoder.c,v 1.10 2001/12/11 15:30:05 miguelfreitas Exp $
*
* 04-09-2001 DTS passtrough (C) Joachim Koenig
* 09-12-2001 DTS passthrough inprovements (C) James Courtier-Dutton
@@ -60,6 +60,13 @@ int dts_can_handle (audio_decoder_t *this_gen, int buf_type) {
}
+void dts_reset (audio_decoder_t *this_gen) {
+
+ /* dts_decoder_t *this = (dts_decoder_t *) this_gen; */
+
+}
+
+
void dts_init (audio_decoder_t *this_gen, ao_instance_t *audio_out) {
dts_decoder_t *this = (dts_decoder_t *) this_gen;
@@ -192,7 +199,7 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t *
dts_decoder_t *this ;
- if (iface_version != 3) {
+ if (iface_version != 4) {
printf( "libdts: plugin doesn't support plugin API version %d.\n"
"libdts: this means there's a version mismatch between xine and this "
"libdts: decoder plugin.\nInstalling current plugins should help.\n",
@@ -202,10 +209,11 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t *
this = (dts_decoder_t *) malloc (sizeof (dts_decoder_t));
- this->audio_decoder.interface_version = 3;
+ this->audio_decoder.interface_version = iface_version;
this->audio_decoder.can_handle = dts_can_handle;
this->audio_decoder.init = dts_init;
this->audio_decoder.decode_data = dts_decode_data;
+ this->audio_decoder.reset = dts_reset;
this->audio_decoder.close = dts_close;
this->audio_decoder.get_identifier = dts_get_id;
this->audio_decoder.priority = 1;