X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=144a2690bf80da24d298ab2bb56c5403835157dc;hp=2837db61c7de43a732564c8d46fec14ef6b4331e;hb=c387b216b5fd3c944053e1bba024815719e9a0d9;hpb=f0c195e0ee6baefae0046db0e10df2e45f72ca41 diff --git a/ogg_afh.c b/ogg_afh.c index 2837db61..144a2690 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -129,10 +129,8 @@ static int vorbis_get_header_callback(ogg_packet *packet, int packet_num, ret = -E_OGG_PACKET_IN; if (ogg_stream_packetin(&vghd->os, packet) < 0) goto out; - ret = -E_OGG_STREAM_FLUSH; - if (ogg_stream_flush(&vghd->os, &og) == 0) - goto out; - add_ogg_page(&og, vghd); + while (ogg_stream_flush(&vghd->os, &og)) + add_ogg_page(&og, vghd); ret = 0; out: ogg_stream_clear(&vghd->os);