From d4edfcd202c2dc95d6a350a9318b78d1ed3014aa Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 29 Feb 2008 16:17:09 +0200 Subject: [PATCH] Properly stop the record pipeline --- src/audio-note.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5