2009-09-01 15:33:43 -07:00
|
|
|
diff --git a/media/liboggplay/src/liboggplay/oggplay_callback.c b/media/liboggplay/src/liboggplay/oggplay_callback.c
|
|
|
|
--- a/media/liboggplay/src/liboggplay/oggplay_callback.c
|
|
|
|
+++ b/media/liboggplay/src/liboggplay/oggplay_callback.c
|
2009-09-23 21:22:23 -07:00
|
|
|
@@ -543,16 +543,26 @@ oggplay_callback_audio (OGGZ * oggz, ogg
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
/* there was no problem with decoding */
|
|
|
|
if (!common->num_header_packets) common->initialised |= 1;
|
|
|
|
break;
|
|
|
|
}
|
2009-09-01 15:33:43 -07:00
|
|
|
|
2009-09-23 21:22:23 -07:00
|
|
|
+ if (bytes_read < 0) {
|
|
|
|
+ printf("\nERROR HADNLING MISMATCH BETWEEN liboggplay AND mozilla\n\n");
|
2009-09-01 15:33:43 -07:00
|
|
|
+ // Unrecoverable error, disable track
|
|
|
|
+ op->e_o_s = 1;
|
|
|
|
+ common->active = 0;
|
|
|
|
+ common->player->active_tracks--;
|
|
|
|
+ return OGGZ_ERR_HOLE_IN_DATA;
|
|
|
|
+ }
|
2009-09-23 21:22:23 -07:00
|
|
|
+
|
|
|
|
+
|
2009-09-01 15:33:43 -07:00
|
|
|
if (decoder->sound_info.channels == 0) {
|
|
|
|
fish_sound_command(decoder->sound_handle, FISH_SOUND_GET_INFO,
|
2009-09-23 21:22:23 -07:00
|
|
|
&(decoder->sound_info), sizeof(FishSoundInfo));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (op->e_o_s) {
|
|
|
|
common->active = 0;
|
|
|
|
common->player->active_tracks--;
|