~ubuntu-branches/ubuntu/vivid/gnash/vivid-proposed

« back to all changes in this revision

Viewing changes to gui/Player.cpp

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2012-06-30 02:35:32 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20120630023532-go61oics8o04jek1
Tags: 0.8.11~git20120629-1
* Git snapshot.
  + IPv6 support.
  + Fix FTBFS with gcc 4.7 and clang.
  + Fix opening of external URL with gnash standalone.
* Remove gstreamer0.10-fluendo-mp3 from runtime deps (Closes: #679527).
* Use sensible-browser instead of xdg-open (Closes: #597195).
* Set NoDiplay=true in desktop icons (Closes: #679573). 
* Switch source and binary to xz compression.
* Remove gcc4.7 and CVE-2012-1175 patches.
* Add hardening lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
    _movieDef->completeLoad();
542
542
 
543
543
    if (! _delay) {
544
 
        // 10ms per heart beat
545
 
        _delay = 10;
 
544
        float fps = _movieDef->get_frame_rate();
 
545
        log_debug(_("Movie Frame Rate is %d, adjusting delay"), fps);
 
546
        // FIXME: this value is arbitrary, and will make any movie with
 
547
        // less than 12 frames eat up more of the cpu. It should probably
 
548
        // be a much lower value, like 2.
 
549
        if (fps > 12) {
 
550
            _delay = static_cast<int>(1000/fps);
 
551
        } else {
 
552
            // 10ms per heart beat
 
553
            _delay = 10;
 
554
        }
546
555
    }
547
556
    // This is the time between the main loop waking up and processing
548
557
    // network messages, external calls, and displaying the next frame.