summaryrefslogtreecommitdiff
path: root/src/libvorbis/xine_decoder.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-11-12 18:40:50 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-11-12 18:40:50 +0000
commit5caae571ccadaaf00a90d4ec321c5ab4b4cc4191 (patch)
tree76f5a2032230468f0321cdccd221768b419ffec0 /src/libvorbis/xine_decoder.c
parent1083056bd34700d1b21171cabf507eab1620be27 (diff)
downloadxine-lib-5caae571ccadaaf00a90d4ec321c5ab4b4cc4191.tar.gz
xine-lib-5caae571ccadaaf00a90d4ec321c5ab4b4cc4191.tar.bz2
merge metronom's improvements (inform decoders about discontinuities)
http://sourceforge.net/mailarchive/forum.php?thread_id=1297475&forum_id=7131 CVS patchset: 3250 CVS date: 2002/11/12 18:40:50
Diffstat (limited to 'src/libvorbis/xine_decoder.c')
-rw-r--r--src/libvorbis/xine_decoder.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libvorbis/xine_decoder.c b/src/libvorbis/xine_decoder.c
index cceffc391..bc0bb779f 100644
--- a/src/libvorbis/xine_decoder.c
+++ b/src/libvorbis/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.20 2002/10/27 01:52:15 guenter Exp $
+ * $Id: xine_decoder.c,v 1.21 2002/11/12 18:40:52 miguelfreitas Exp $
*
* (ogg/)vorbis audio decoder plugin (libvorbis wrapper) for xine
*/
@@ -79,6 +79,9 @@ static void vorbis_reset (audio_decoder_t *this_gen) {
vorbis_block_init(&this->vd,&this->vb);
}
+static void vorbis_discontinuity (audio_decoder_t *this_gen) {
+}
+
/* Known vorbis comment keys from ogg123 sources*/
static struct {
char *key; /* includes the '=' for programming convenience */
@@ -274,6 +277,7 @@ static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen,
this->audio_decoder.decode_data = vorbis_decode_data;
this->audio_decoder.reset = vorbis_reset;
+ this->audio_decoder.discontinuity = vorbis_discontinuity;
this->audio_decoder.dispose = vorbis_dispose;
this->stream = stream;
@@ -328,6 +332,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, 10, "vorbis", XINE_VERSION_CODE, &dec_info_audio, init_plugin },
+ { PLUGIN_AUDIO_DECODER, 11, "vorbis", XINE_VERSION_CODE, &dec_info_audio, init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};