Mercurial > audlegacy
changeset 557:3260cb29e366 trunk
[svn] amidi-plug: ensure that i_seq_off() can be safely called multiple times
author | giacomo |
---|---|
date | Wed, 01 Feb 2006 13:36:46 -0800 |
parents | 8afdef1181e3 |
children | 3fb3657d2e14 |
files | Plugins/Input/amidi-plug/i_seq.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/amidi-plug/i_seq.c Wed Feb 01 13:11:14 2006 -0800 +++ b/Plugins/Input/amidi-plug/i_seq.c Wed Feb 01 13:36:46 2006 -0800 @@ -26,17 +26,22 @@ gint i_seq_on( gshort with_wparse , gchar * wports_str ) { if ( !i_seq_open() ) + { + sc.seq = NULL; return 0; + } if ( !i_seq_port_create() ) { i_seq_close(); + sc.seq = NULL; return 0; } if ( !i_seq_queue_create() ) { i_seq_close(); + sc.seq = NULL; return 0; } @@ -47,6 +52,7 @@ { i_seq_queue_free(); i_seq_close(); + sc.seq = NULL; return 0; }