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;
}