gstreamer_pbutils/
discoverer_subtitle_info.rsuse std::fmt;
use glib::prelude::*;
use crate::{DiscovererStreamInfo, DiscovererSubtitleInfo};
pub struct Debug<'a>(&'a DiscovererSubtitleInfo);
impl fmt::Debug for Debug<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let info = self.0.upcast_ref::<DiscovererStreamInfo>();
f.debug_struct("DiscovererSubtitleInfo")
.field("language", &self.0.language())
.field("stream", &info.debug())
.finish()
}
}
impl DiscovererSubtitleInfo {
pub fn debug(&self) -> Debug {
Debug(self)
}
}