diff options
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 } }; |