]> err.no Git - mapper/commitdiff
Properly stop the record pipeline
authorKaj-Michael Lang <milang@onion.tal.org>
Fri, 29 Feb 2008 14:17:09 +0000 (16:17 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Fri, 29 Feb 2008 14:17:09 +0000 (16:17 +0200)
src/audio-note.c

index c2f645f441fd9d07556c4e903082efce0ca6c7e8..3be3587e19bad70d46bc1242062e4966d8b15fe8 100644 (file)
@@ -294,14 +294,14 @@ GstState pending;
 
 gst_element_get_state(note_record.pipeline, &current, &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, &current, &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;
 }