speechmaticstranscriber: add debug

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1831>
This commit is contained in:
Mathieu Duponchelle 2024-10-01 16:35:16 +02:00 committed by GStreamer Marge Bot
parent 115e12c09a
commit 867408b1c0

View file

@ -364,6 +364,12 @@ impl TranscriberSrcPad {
} }
if self.obj().sticky_event::<gst::event::Segment>(0).is_none() { if self.obj().sticky_event::<gst::event::Segment>(0).is_none() {
gst::debug!(
CAT,
imp = self,
"Constructing segment event from {:?}",
state_guard.out_segment
);
events.push( events.push(
gst::event::Segment::builder(&state_guard.out_segment) gst::event::Segment::builder(&state_guard.out_segment)
.seqnum(state_guard.seqnum) .seqnum(state_guard.seqnum)
@ -374,6 +380,7 @@ impl TranscriberSrcPad {
drop(state_guard); drop(state_guard);
for event in events { for event in events {
gst::debug!(CAT, imp = self, "Pushing event {event:?}");
self.obj().push_event(event); self.obj().push_event(event);
} }