fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Fix MJPEG stream #361

Closed rogatty closed 2 years ago

rogatty commented 2 years ago

Stop overriding FFmpegCamera's handle_async_mjpeg_stream() to fix AttributeError: 'ReolinkCamera' object has no attribute '_input'. The original code is identical but has access to self._input.

Fixes https://github.com/fwestenberg/reolink_dev/issues/346, https://github.com/fwestenberg/reolink_dev/issues/278 and possibly https://github.com/fwestenberg/reolink_dev/issues/354.

cpainchaud commented 2 years ago

yeah I am wondering why @fwestenberg made this override but he is not replying so I will accept this PR. Thank you