livesync: log new pending segments

The debug print of the event does not display details about the segment:
  Unqueueing Some(Event(Event { ptr: 0x7fa3e0002580, type: "segment", seqnum: Seqnum(479), structure: Some(GstEventSegment { segment: (GstSegment) ((GstSegment*) 0x7fa3e8001d00) }) }))

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1370>
This commit is contained in:
Guillaume Desmottes 2023-10-25 14:24:35 +02:00
parent ee93448de7
commit 13dae0f0d0

View file

@ -1057,6 +1057,7 @@ impl LiveSync {
match event.view() { match event.view() {
gst::EventView::Segment(e) => { gst::EventView::Segment(e) => {
let segment = e.segment().downcast_ref().unwrap(); let segment = e.segment().downcast_ref().unwrap();
gst::debug!(CAT, imp: self, "pending {segment:?}");
state.pending_segment = Some(segment.clone()); state.pending_segment = Some(segment.clone());
push = false; push = false;
} }