Skip to content

Commit

Permalink
Another tweak to fix video on systems using libav
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelson committed Jul 11, 2014
1 parent 72e6bed commit 153e39c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ void FeVideoImp::preload()

void FeVideoImp::video_thread()
{
#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 55, 45, 0 ))
const unsigned int MAX_QUEUE( 4 ), MIN_QUEUE( 0 );
#else
const unsigned int MAX_QUEUE( 1 ), MIN_QUEUE( 0 );
#endif

bool exhaust_queue( false );
sf::Time max_sleep = time_base / (sf::Int64)2;
Expand Down

0 comments on commit 153e39c

Please sign in to comment.