Index: gnopernicus/speech/libsrs/srs-gs.c
===================================================================
RCS file: /cvs/gnome/gnopernicus/speech/libsrs/srs-gs.c,v
retrieving revision 1.3
diff -u -r1.3 srs-gs.c
--- gnopernicus/speech/libsrs/srs-gs.c	17 Aug 2004 16:51:37 -0000	1.3
+++ gnopernicus/speech/libsrs/srs-gs.c	12 Oct 2004 12:03:55 -0000
@@ -277,10 +277,14 @@
 	case SRSGSWrapSpeechEnded:
 	    if (srs_gs_outs)
 	    {
-		srs_gs_generate_callback (id, SRS_MARKER_TEXT_ENDED, offset);
+	        SRSGSOut *out = srs_gs_outs->data;
+		if (id == out->idl)
+		{
+		    srs_gs_generate_callback (id, SRS_MARKER_TEXT_ENDED, offset);
 
-		g_idle_add (srs_gs_out_terminate_idle, srs_gs_outs->data);
-		srs_gs_outs = g_slist_delete_link (srs_gs_outs, srs_gs_outs);
+		    g_idle_add (srs_gs_out_terminate_idle, srs_gs_outs->data);
+		    srs_gs_outs = g_slist_delete_link (srs_gs_outs, srs_gs_outs);
+		}
 	    }
 	    break;
 	default:
