[retro-gtk] retro-gobject: Fix getting FPS in MainLoop
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Fix getting FPS in MainLoop
- Date: Thu, 25 Aug 2016 20:38:10 +0000 (UTC)
commit 3518ccd2d24a7be040adef514d81279d523b6fb4
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Aug 24 17:38:33 2016 +0200
retro-gobject: Fix getting FPS in MainLoop
https://bugzilla.gnome.org/show_bug.cgi?id=770340
retro-gobject/loop/main-loop.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/retro-gobject/loop/main-loop.vala b/retro-gobject/loop/main-loop.vala
index 3241f46..46b1a96 100644
--- a/retro-gobject/loop/main-loop.vala
+++ b/retro-gobject/loop/main-loop.vala
@@ -54,7 +54,7 @@ public class MainLoop : Object, Loop {
*/
public void start () {
var info = core.av_info;
- var fps = info == null ? info.fps : 60.0;
+ var fps = info != null ? info.fps : 60.0;
if (loop == null && speed_rate > 0) {
loop = Timeout.add ((uint) (1000 / (fps * speed_rate)), run);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]