Skip to content

Commit

Permalink
misc: dump pipeline to current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 9, 2024
1 parent a680e46 commit 9837649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-aux/io.github.seadve.Kooha.Devel.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"--env=RUST_LOG=kooha=debug",
"--env=G_MESSAGES_DEBUG=none",
"--env=KOOHA_EXPERIMENTAL=1",
"--env=GST_DEBUG=3"
"--env=GST_DEBUG=3",
"--env=GST_DEBUG_DUMP_DOT_DIR=."
],
"build-options": {
"append-path": "/usr/lib/sdk/llvm16/bin:/usr/lib/sdk/rust-stable/bin",
Expand Down
2 changes: 2 additions & 0 deletions src/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ impl Recording {
|| gettext("A GStreamer plugin may not be installed."),
|| gettext("Failed to start recording"),
)?;
pipeline.debug_to_dot_file_with_ts(gst::DebugGraphDetails::VERBOSE, "kooha-pipeline");
imp.pipeline.set(pipeline.clone()).unwrap();

let location = pipeline
.by_name(FILESINK_ELEMENT_NAME)
.context("Element filesink not found on pipeline")?
Expand Down

0 comments on commit 9837649

Please sign in to comment.