Skip to content

Commit

Permalink
misc: add way to debug area selector pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Jul 20, 2024
1 parent 8cb96a0 commit 3ccde3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/area_selector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ impl AreaSelector {
// Wait for pipeline to be on playing state
async_done_rx.await.unwrap()?;

// This is enabled by setting `GST_DEBUG_DUMP_DOT_DIR` to a directory (e.g. `GST_DEBUG_DUMP_DOT_DIR=.`).
pipeline.debug_to_dot_file_with_ts(
gst::DebugGraphDetails::VERBOSE,
"kooha-area-selector-pipeline",
);

// Get stream size
let caps = videosrc_bin
.static_pad("src")
Expand Down
6 changes: 4 additions & 2 deletions src/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,10 @@ impl Recording {
tracing::trace!("Received async-done message on bus: {:?}", ad);

// This is enabled by setting `GST_DEBUG_DUMP_DOT_DIR` to a directory (e.g. `GST_DEBUG_DUMP_DOT_DIR=.`).
self.pipeline()
.debug_to_dot_file_with_ts(gst::DebugGraphDetails::VERBOSE, "kooha-pipeline");
self.pipeline().debug_to_dot_file_with_ts(
gst::DebugGraphDetails::VERBOSE,
"kooha-recording-pipeline",
);

glib::ControlFlow::Continue
}
Expand Down

0 comments on commit 3ccde3d

Please sign in to comment.