Commit 40cea52
committed
Fix HDMI hotplug video restart after sleep mode changes
The sleep mode feature from dev (PR #999) prevented video from auto-starting
when streaming_status == 0, which broke HDMI hotplug functionality.
Modified video_restart_streaming() to check detected_signal:
- No signal + not streaming -> don't start (preserve sleep mode)
- Has signal -> always stop cleanly then restart (fix hotplug)
This ensures proper encoder cleanup and prevents corrupted video output
after HDMI disconnect/reconnect cycles.1 parent 3f99e88 commit 40cea52
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
773 | | - | |
774 | | - | |
| 772 | + | |
| 773 | + | |
775 | 774 | | |
776 | | - | |
| 775 | + | |
777 | 776 | | |
778 | | - | |
| 777 | + | |
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
785 | | - | |
| 784 | + | |
786 | 785 | | |
787 | 786 | | |
788 | 787 | | |
| |||
0 commit comments