X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=8376b652d15eb690e91e86163045af334ef7cf07;hp=144a2690bf80da24d298ab2bb56c5403835157dc;hb=d4b040af5e31260dbf71f4547484179f32be4746;hpb=92e4a0579a320372d2e94efc7c2a0d9f419e3ffe diff --git a/ogg_afh.c b/ogg_afh.c index 144a2690..8376b652 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2011 Andre Noll + * Copyright (C) 2004-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -105,7 +105,6 @@ static int vorbis_get_header_callback(ogg_packet *packet, int packet_num, return 0; if (packet_num == 0) { ogg_stream_init(&vghd->os, serial); - ret = -E_OGG_PACKET_IN; ret = ogg_stream_packetin(&vghd->os, packet); if (ret < 0) goto out; @@ -116,8 +115,8 @@ static int vorbis_get_header_callback(ogg_packet *packet, int packet_num, return 1; } if (packet_num == 1) { - PARA_INFO_LOG("replacing metadata packet\n"); ogg_packet replacement = *packet; + PARA_INFO_LOG("replacing metadata packet\n"); replacement.packet = dummy_packet; replacement.bytes = sizeof(dummy_packet); ret = ogg_stream_packetin(&vghd->os, &replacement);