Skip to content

Commit

Permalink
Move draw func before output meta preparation. (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisvmedyantsev authored Mar 9, 2023
1 parent d364c65 commit 91a8dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions savant/config/module_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def load(self, config_file_path: Union[str, Path]) -> Module:
del self._default_cfg.pipeline.source

logger.debug('Default conf\n%s', self._default_cfg)
logger.debug('Module conf\n%s', module_cfg)
module_cfg = OmegaConf.unsafe_merge(
self._config_schema, self._default_cfg, module_cfg
)
Expand Down
2 changes: 1 addition & 1 deletion savant/deepstream/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ def _create_demuxer(self, link: bool) -> Gst.Element:
demuxer, self._max_parallel_streams
)
sink_peer_pad: Gst.Pad = demuxer.get_static_pad('sink').get_peer()
sink_peer_pad.add_probe(Gst.PadProbeType.BUFFER, self.update_frame_meta)
if self._draw_func and self._output_frame_codec:
sink_peer_pad.add_probe(Gst.PadProbeType.BUFFER, self._draw_on_frame_probe)
sink_peer_pad.add_probe(Gst.PadProbeType.BUFFER, self.update_frame_meta)
return demuxer

def _draw_on_frame_probe(
Expand Down

0 comments on commit 91a8dba

Please sign in to comment.