From: kramm Date: Fri, 26 Sep 2008 11:31:13 +0000 (+0000) Subject: output error if soundstream requested but not found X-Git-Tag: buttons-working~40 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=cccb7ad998a2f0c6677fffabbb1c849e837b9eb6;p=swftools.git output error if soundstream requested but not found --- diff --git a/src/swfextract.c b/src/swfextract.c index f636eea..f66dd83 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -940,7 +940,7 @@ void handlelossless(TAG*tag) } #endif -FILE*mp3file; +static FILE*mp3file=0; void handlesoundstream(TAG*tag) { char*filename = "output.mp3"; @@ -1183,8 +1183,13 @@ int main (int argc,char ** argv) if (found) extractTag(&swf, destfilename); - if(mp3file) + if(mp3file) { fclose(mp3file); + } else { + if(extractmp3) { + msg(" Didn't find a soundstream in file"); + } + } swf_FreeTags(&swf); return 0;