summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-03-09 18:35:05 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-03-09 18:35:05 +0100
commit2287918ed654045917e8c2a691669969cd62d80f (patch)
tree6cc00e4170dc85bd85a4c7e6728892872d02f5a1 /modules
parent82c927f7f585fefb7a63ff22434b636949ac2f84 (diff)
vidloop: use %f to print fps
Diffstat (limited to 'modules')
-rw-r--r--modules/vidloop/vidloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c
index 40301eb..6d6e571 100644
--- a/modules/vidloop/vidloop.c
+++ b/modules/vidloop/vidloop.c
@@ -250,7 +250,7 @@ static int enable_codec(struct video_loop *vl, const char *name)
return ENOENT;
}
- info("vidloop: enabled encoder %s (%u fps, %u bit/s)\n",
+ info("vidloop: enabled encoder %s (%.2f fps, %u bit/s)\n",
vl->vc_enc->name, prm.fps, prm.bitrate);
vl->vc_dec = vidcodec_find_decoder(vidcodecl, name);
@@ -336,7 +336,7 @@ static int vsrc_reopen(struct video_loop *vl, const struct vidsz *sz)
struct vidsrc_prm prm;
int err;
- info("vidloop: %s,%s: open video source: %u x %u at %u fps\n",
+ info("vidloop: %s,%s: open video source: %u x %u at %.2f fps\n",
vl->cfg.src_mod, vl->cfg.src_dev,
sz->w, sz->h, vl->cfg.fps);