summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-25 13:45:13 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-25 13:45:13 +0100
commit9780a6260a226f2c19673284730c25d381db074d (patch)
treeda0d6e3031cc6f697060b4c06d43e2860f456619 /test
parent59d29c0254b9240a00ac9236cc8e92c0ae65ec8a (diff)
video: change video_fps from int to double float
Diffstat (limited to 'test')
-rw-r--r--test/mock/mock_vidcodec.c2
-rw-r--r--test/mock/mock_vidsrc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/mock/mock_vidcodec.c b/test/mock/mock_vidcodec.c
index 9571f73..93f7a7f 100644
--- a/test/mock/mock_vidcodec.c
+++ b/test/mock/mock_vidcodec.c
@@ -22,7 +22,7 @@ struct hdr {
struct videnc_state {
int64_t pts;
- unsigned fps;
+ double fps;
videnc_packet_h *pkth;
void *arg;
};
diff --git a/test/mock/mock_vidsrc.c b/test/mock/mock_vidsrc.c
index 8f92bc4..ad6b165 100644
--- a/test/mock/mock_vidsrc.c
+++ b/test/mock/mock_vidsrc.c
@@ -14,7 +14,7 @@ struct vidsrc_st {
struct vidframe *frame;
struct tmr tmr;
- int fps;
+ double fps;
vidsrc_frame_h *frameh;
void *arg;
};
@@ -71,7 +71,7 @@ static int mock_vidsrc_alloc(struct vidsrc_st **stp, const struct vidsrc *vs,
tmr_start(&st->tmr, 0, tmr_handler, st);
- info("mock_vidsrc: new instance with size %u x %u (%d fps)\n",
+ info("mock_vidsrc: new instance with size %u x %u (%.2f fps)\n",
size->w, size->h, prm->fps);
out: