diff options
author | Wim Taymans <wtaymans@redhat.com> | 2014-06-11 22:18:39 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-06-12 16:56:44 +0200 |
commit | fdf0cea3ba347d46ca4305a92ec8dcefb846ce91 (patch) | |
tree | 5eb3f8fc6dae6af0039cee777666f64e538da94b | |
parent | 4a2a21ea4cfbec9fe103a871d57feaa6bdaae219 (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.c | 4 |
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; } } |