From cccb7ad998a2f0c6677fffabbb1c849e837b9eb6 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 26 Sep 2008 11:31:13 +0000 Subject: [PATCH] output error if soundstream requested but not found --- src/swfextract.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 1.7.10.4