From: Kaj-Michael Lang Date: Fri, 29 Feb 2008 14:17:09 +0000 (+0200) Subject: Properly stop the record pipeline X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4edfcd202c2dc95d6a350a9318b78d1ed3014aa;p=mapper Properly stop the record pipeline --- diff --git a/src/audio-note.c b/src/audio-note.c index c2f645f..3be3587 100644 --- a/src/audio-note.c +++ b/src/audio-note.c @@ -294,14 +294,14 @@ GstState pending; gst_element_get_state(note_record.pipeline, ¤t, &pending, GST_CLOCK_TIME_NONE); if (current==GST_STATE_PLAYING) { - gst_element_set_state(note_record.pipeline, GST_STATE_PAUSED); + gst_element_set_state(note_record.pipeline, GST_STATE_NULL); note_record.active=FALSE; return TRUE; } gst_element_get_state(note_play.pipeline, ¤t, &pending, GST_CLOCK_TIME_NONE); if (current==GST_STATE_PLAYING) { - gst_element_set_state(note_play.pipeline, GST_STATE_PAUSED); + gst_element_set_state(note_play.pipeline, GST_STATE_READY); note_play.active=FALSE; return TRUE; }