[xiph-commits] r7429 - icecast/trunk/ices0/src

brendan at motherfish-iii.xiph.org brendan
Thu Aug 5 19:04:55 PDT 2004


Author: brendan
Date: Thu Aug  5 19:04:55 2004
New Revision: 7429

Modified:
icecast/trunk/ices0/src/in_flac.c
Log:
Don't claim to handle file unless FLAC streaminfo was found in prebuffer.


Modified: icecast/trunk/ices0/src/in_flac.c
===================================================================
--- icecast/trunk/ices0/src/in_flac.c	2004-07-31 09:11:47 UTC (rev 7428)
+++ icecast/trunk/ices0/src/in_flac.c	2004-07-31 09:24:30 UTC (rev 7429)
@@ -109,11 +109,13 @@
ices_log_error("Could not find FLAC metadata header");
free(flac_data);
FLAC__stream_decoder_delete(decoder);
-    return 1;;
+    return 1;
}
if (!flac_data->parsed) {
ices_log_error("Could not find FLAC metadata header in prebuffer");
-    goto errData;
+    free(flac_data);
+    FLAC__stream_decoder_delete(decoder);
+    return 1;
}

self->type = ICES_INPUT_FLAC;



More information about the commits mailing list