Add more tracing info
This commit is contained in:
parent
4e30659807
commit
316fe79443
1 changed files with 7 additions and 0 deletions
|
@ -505,6 +505,8 @@ impl Transcriber {
|
|||
}
|
||||
|
||||
let _ = self.srcpad.stop_task();
|
||||
|
||||
gst_trace!(CAT, obj: element, "Dropped internal element sender and stopped src pad task..");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
@ -679,6 +681,8 @@ impl Transcriber {
|
|||
);
|
||||
gst::FlowError::Error
|
||||
})?;
|
||||
|
||||
gst_trace!(CAT, obj: element, "Sent a chunk of {} bytes from a total of {} bytes", chunk.len(), data.len())
|
||||
}
|
||||
} else {
|
||||
gst_info!(
|
||||
|
@ -838,12 +842,15 @@ impl Transcriber {
|
|||
|
||||
let mut sender = transcribe.state.lock().unwrap().sender.clone();
|
||||
|
||||
gst_trace!(CAT, obj: &element, "Handling message: {}", msg);
|
||||
|
||||
if let Some(sender) = sender.as_mut() {
|
||||
if let Err(err) = sender.send(msg).await {
|
||||
gst_error!(CAT, obj: &element, "Stopped RECV handler: {}", err);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
gst_error!(CAT, obj: &element, "Failed to capture element's internal sender, stopping..");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue