forked from mirrors/gstreamer-rs
Print clock times as actual time in Segment/Buffer/BufferList debug output
This commit is contained in:
parent
77d439338b
commit
0920008869
3 changed files with 12 additions and 12 deletions
|
@ -372,9 +372,9 @@ impl ToOwned for BufferRef {
|
||||||
impl fmt::Debug for BufferRef {
|
impl fmt::Debug for BufferRef {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
f.debug_struct("Buffer")
|
f.debug_struct("Buffer")
|
||||||
.field("pts", &self.get_pts())
|
.field("pts", &self.get_pts().to_string())
|
||||||
.field("dts", &self.get_dts())
|
.field("dts", &self.get_dts().to_string())
|
||||||
.field("duration", &self.get_duration())
|
.field("duration", &self.get_duration().to_string())
|
||||||
.field("size", &self.get_size())
|
.field("size", &self.get_size())
|
||||||
.field("offset", &self.get_offset())
|
.field("offset", &self.get_offset())
|
||||||
.field("offset_end", &self.get_offset_end())
|
.field("offset_end", &self.get_offset_end())
|
||||||
|
|
|
@ -102,8 +102,8 @@ impl fmt::Debug for BufferListRef {
|
||||||
|
|
||||||
f.debug_struct("BufferList")
|
f.debug_struct("BufferList")
|
||||||
.field("buffers", &self.len())
|
.field("buffers", &self.len())
|
||||||
.field("pts", &pts)
|
.field("pts", &pts.to_string())
|
||||||
.field("dts", &dts)
|
.field("dts", &dts.to_string())
|
||||||
.field("size", &size)
|
.field("size", &size)
|
||||||
.finish()
|
.finish()
|
||||||
}
|
}
|
||||||
|
|
|
@ -328,16 +328,16 @@ impl fmt::Debug for Segment {
|
||||||
Format::Time => {
|
Format::Time => {
|
||||||
f.debug_struct("Segment")
|
f.debug_struct("Segment")
|
||||||
.field("format", &Format::Time)
|
.field("format", &Format::Time)
|
||||||
.field("start", &ClockTime::from(self.get_start()))
|
.field("start", &ClockTime::from(self.get_start()).to_string())
|
||||||
.field("offset", &ClockTime::from(self.get_offset()))
|
.field("offset", &ClockTime::from(self.get_offset()).to_string())
|
||||||
.field("stop", &ClockTime::from(self.get_stop()))
|
.field("stop", &ClockTime::from(self.get_stop()).to_string())
|
||||||
.field("rate", &self.get_rate())
|
.field("rate", &self.get_rate())
|
||||||
.field("applied_rate", &self.get_applied_rate())
|
.field("applied_rate", &self.get_applied_rate())
|
||||||
.field("flags", &self.get_flags())
|
.field("flags", &self.get_flags())
|
||||||
.field("time", &ClockTime::from(self.get_time()))
|
.field("time", &ClockTime::from(self.get_time()).to_string())
|
||||||
.field("base", &ClockTime::from(self.get_base()))
|
.field("base", &ClockTime::from(self.get_base()).to_string())
|
||||||
.field("position", &ClockTime::from(self.get_position()))
|
.field("position", &ClockTime::from(self.get_position()).to_string())
|
||||||
.field("duration", &ClockTime::from(self.get_duration()))
|
.field("duration", &ClockTime::from(self.get_duration()).to_string())
|
||||||
.finish()
|
.finish()
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in a new issue