--- gnome-media-2.2.2/grecord/src/gsr-window.c	2003-08-28 17:08:56.000000000 +0100
+++ gnome-media-2.2.2-new/grecord/src/gsr-window.c	2003-08-28 16:44:05.000000000 +0100
@@ -1302,7 +1302,12 @@ tick_callback (GSRWindow *window)
 static gboolean
 play_iterate (GSRWindow *window)
 {
-	return gst_bin_iterate (GST_BIN (window->priv->play->pipeline));
+	gboolean ret;
+	ret =  gst_bin_iterate (GST_BIN (window->priv->play->pipeline));
+
+	if (!ret)
+		gst_element_set_state (window->priv->play->pipeline, GST_STATE_NULL);
+	return ret;
 }
 
 static void
