summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-06-11 22:18:39 +0200
committerWim Taymans <wtaymans@redhat.com>2014-06-12 16:56:44 +0200
commitfdf0cea3ba347d46ca4305a92ec8dcefb846ce91 (patch)
tree5eb3f8fc6dae6af0039cee777666f64e538da94b
parent4a2a21ea4cfbec9fe103a871d57feaa6bdaae219 (diff)
shell-recorder: send EOS to the pipeline
Send EOS to the complete pipeline instead of only to out own source. When there are multiple sources in the pipeline (for example when we also record audio), the pipeline will send the EOS to all sources in order to shut down the complete pipeline.
-rw-r--r--src/shell-recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index f0b3a642..494ae52b 100644
--- a/src/shell-recorder.c
+++ b/src/shell-recorder.c
@@ -1541,8 +1541,8 @@ recorder_close_pipeline (ShellRecorder *recorder)
* is written. The bus watch for the pipeline will get it and do
* final cleanup
*/
- shell_recorder_src_close (SHELL_RECORDER_SRC (recorder->current_pipeline->src));
-
+ gst_element_send_event (recorder->current_pipeline->pipeline,
+ gst_event_new_eos());
recorder->current_pipeline = NULL;
}
}