diff options
| author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-11-12 18:40:50 +0000 |
|---|---|---|
| committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-11-12 18:40:50 +0000 |
| commit | 5caae571ccadaaf00a90d4ec321c5ab4b4cc4191 (patch) | |
| tree | 76f5a2032230468f0321cdccd221768b419ffec0 /src/libxineadec/roqaudio.c | |
| parent | 1083056bd34700d1b21171cabf507eab1620be27 (diff) | |
| download | xine-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/libxineadec/roqaudio.c')
| -rw-r--r-- | src/libxineadec/roqaudio.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libxineadec/roqaudio.c b/src/libxineadec/roqaudio.c index 71e07d1e3..001349242 100644 --- a/src/libxineadec/roqaudio.c +++ b/src/libxineadec/roqaudio.c @@ -21,7 +21,7 @@ * For more information regarding the RoQ file format, visit: * http://www.csse.monash.edu.au/~timf/ * - * $Id: roqaudio.c,v 1.11 2002/11/11 05:01:33 tmmm Exp $ + * $Id: roqaudio.c,v 1.12 2002/11/12 18:40:53 miguelfreitas Exp $ * */ @@ -150,6 +150,13 @@ static void roqaudio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) static void roqaudio_reset (audio_decoder_t *this_gen) { } +static void roqaudio_discontinuity (audio_decoder_t *this_gen) { + + roqaudio_decoder_t *this = (roqaudio_decoder_t *) this_gen; + + this->pts = 0; +} + static void roqaudio_dispose (audio_decoder_t *this_gen) { roqaudio_decoder_t *this = (roqaudio_decoder_t *) this_gen; @@ -174,6 +181,7 @@ static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen, xine_stre this->audio_decoder.decode_data = roqaudio_decode_data; this->audio_decoder.reset = roqaudio_reset; + this->audio_decoder.discontinuity = roqaudio_discontinuity; this->audio_decoder.dispose = roqaudio_dispose; this->size = 0; @@ -230,6 +238,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, "roqaudio", XINE_VERSION_CODE, &dec_info_audio, init_plugin }, + { PLUGIN_AUDIO_DECODER, 11, "roqaudio", XINE_VERSION_CODE, &dec_info_audio, init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |
