Skip to content

Commit

Permalink
take out ffmpeg pausing until reason for freezing sorted out
Browse files Browse the repository at this point in the history
  • Loading branch information
paddywwoof authored Dec 14, 2024
1 parent 04e3c9f commit 0c1f1a2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/picframe/viewer_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,13 @@ def display_is_on(self, on_off): #on_off is True turns screen on, False turns it
self.__logger.debug("Cause: %s", e)
else:
self.__logger.warning("Unsupported setting for display_power=%d.", self.__display_power)
if self.__video_streamer is not None:
if on_off:
self.__video_streamer.restart()
else:
self.__video_streamer.pause()
### TODO pausing the ffmpeg process can make picframe hang if the screen is blanked for a while
# this needs to be done in combination with Controller.paused() functionality
#if self.__video_streamer is not None:
# if on_off:
# self.__video_streamer.restart()
# else:
# self.__video_streamer.pause()


def set_show_text(self, txt_key=None, val="ON"):
Expand Down

0 comments on commit 0c1f1a2

Please sign in to comment.