Skip to content

Commit

Permalink
Increased video timeout to 5 seconds (#546)
Browse files Browse the repository at this point in the history
* Increased video timeout to 5 seconds

2 seconds timeout was causing unintentional restarts of videos on the Raspberry PI.

* Fixed Travis error on OSX


Fixed Travis error on OSX
  • Loading branch information
oomek authored and mickelson committed Mar 15, 2019
1 parent 77bfe4a commit 5c2cab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ matrix:
- os: osx
compiler: gcc
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update --all; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ffmpeg sfml libarchive curl; fi
script:
Expand Down
2 changes: 1 addition & 1 deletion src/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ void FeVideoImp::video_thread()
// so we flag the video to be restarted on the next tick.
// This prevents displaying only keyframes for several seconds on wake.
//
if ( wait_time < sf::seconds( -2.0f ) )
if ( wait_time < sf::seconds( -5.0f ) )
{
wait_time = sf::seconds( 0 );
far_behind = true;
Expand Down

0 comments on commit 5c2cab1

Please sign in to comment.