X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2FSWF.c;h=050b36a43d09f35dab3e96833eff502627a8e56b;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=55f6192e6dc10d2c25452bcbb64b972f900551f0;hpb=dfe93fcebfb33eccc6d8f8acc505692909fdd171;p=swftools.git diff --git a/lib/python/SWF.c b/lib/python/SWF.c index 55f6192..050b36a 100644 --- a/lib/python/SWF.c +++ b/lib/python/SWF.c @@ -211,18 +211,10 @@ static PyObject * swf_save(PyObject* self, PyObject* args, PyObject* kwargs) PyErr_SetString(PyExc_Exception, setError("couldn't create output file %s", filename)); return 0; } - if(swf->compressed) { - if(swf_WriteSWC(fi, swf)<0) { - close(fi); - PyErr_SetString(PyExc_Exception, setError("WriteSWC() failed.")); - return 0; - } - } else { - if(swf_WriteSWF(fi, swf)<0) { - close(fi); - PyErr_SetString(PyExc_Exception, setError("WriteSWC() failed.")); - return 0; - } + if(swf_WriteSWF(fi, swf)<0) { + close(fi); + PyErr_SetString(PyExc_Exception, setError("WriteSWC() failed.")); + return 0; } close(fi);