Skip to content

Commit

Permalink
Fix broken video playback
Browse files Browse the repository at this point in the history
Fixes #56
  • Loading branch information
avanc committed Nov 16, 2021
1 parent d6e8618 commit a667e4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion board/common/overlay/etc/version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OS_NAME="photOS"
OS_SHORT_NAME="photOS"
OS_PREFIX="photos"
OS_VERSION="0.3.6-rc4"
OS_VERSION="0.3.6-rc5"
7 changes: 4 additions & 3 deletions package/photoframe/photoframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ function start {
get_image
fi
else
# video has ended
if ! kill $PID > /dev/null 2>&1; then
# Check if video has ended
if ! [ -d "/proc/$PID" ]; then
# Video has ended, new media can be shown
UPDATE_MEDIA=true
get_image
fi
Expand All @@ -267,7 +268,7 @@ function start {
LAST_IMAGE_UPDATE=$(date +%s)
fbv $PARAMS_FBV "$IMAGE"
else
omxplayer "$IMAGE" &
omxplayer --no-keys "$IMAGE" &
PID=$!
fi

Expand Down

0 comments on commit a667e4e

Please sign in to comment.