mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 02:03:48 +00:00
closedcaption/608overlay: add some debug loggin when resets occur
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2051>
This commit is contained in:
parent
4f4f84a615
commit
12811f9bc3
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,7 @@ impl Cea608Frame {
|
|||
|
||||
pub fn set_channel(&mut self, channel: Channel) {
|
||||
if Some(channel) != self.selected_channel {
|
||||
gst::log!(CAT, "reset (channel change)");
|
||||
self.reset();
|
||||
self.selected_channel = Some(channel);
|
||||
}
|
||||
|
@ -306,6 +307,7 @@ impl Cea608Frame {
|
|||
.map_or(!new_mode.is_rollup(), |mode| mode.is_rollup())
|
||||
{
|
||||
self.base_row = MAX_ROW as u8;
|
||||
gst::log!(CAT, "reset (mode change)");
|
||||
self.reset();
|
||||
}
|
||||
|
||||
|
@ -810,6 +812,7 @@ impl Cea608Renderer {
|
|||
}
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
gst::log!(CAT, "clearing");
|
||||
self.state.reset();
|
||||
let channel = self.channel();
|
||||
self.frame.reset();
|
||||
|
|
Loading…
Reference in a new issue