summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-17 19:41:09 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-17 19:41:09 +0000
commit98c55e3701ba4111c11ea8ce216f1d0b72a2f7ea (patch)
tree0cdbcf6283be096646d5ccfd7f01ad8ed4ec5c66
parent813d8f18d8b192697991726e0eab18e862356804 (diff)
downloadxine-lib-98c55e3701ba4111c11ea8ce216f1d0b72a2f7ea.tar.gz
xine-lib-98c55e3701ba4111c11ea8ce216f1d0b72a2f7ea.tar.bz2
fix deinitialization
CVS patchset: 1059 CVS date: 2001/11/17 19:41:09
-rw-r--r--src/libw32dll/w32codec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c
index e2dac10cd..dfe0ca762 100644
--- a/src/libw32dll/w32codec.c
+++ b/src/libw32dll/w32codec.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: w32codec.c,v 1.46 2001/11/17 14:26:39 f1rmb Exp $
+ * $Id: w32codec.c,v 1.47 2001/11/17 19:41:09 miguelfreitas Exp $
*
* routines for using w32 codecs
* DirectShow support by Miguel Freitas (Nov/2001)
@@ -1074,9 +1074,11 @@ static void w32a_close (audio_decoder_t *this_gen) {
w32a_decoder_t *this = (w32a_decoder_t *) this_gen;
if( !this->ds_driver ) {
- acmStreamClose(this->srcstream, 0);
+ if( this->srcstream )
+ acmStreamClose(this->srcstream, 0);
} else {
- DS_AudioDecoder_Destroy(this->ds_dec);
+ if( this->ds_dec )
+ DS_AudioDecoder_Destroy(this->ds_dec);
}
Restore_LDT_Keeper(this->ldt_fs);