summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-04-02 18:32:12 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-04-02 18:32:12 +0200
commit63a87cbe9e36456a9f03698b59858a83c83e068a (patch)
treeaa01910ef1f4274226bd49eece7fbc3bb2ff5c91 /modules
parent3e07f0b88e5d5ceb24d2663549465b40fd7f18f1 (diff)
vidloop: add source and display name to summary
Diffstat (limited to 'modules')
-rw-r--r--modules/vidloop/vidloop.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c
index 446ca02..0c41d72 100644
--- a/modules/vidloop/vidloop.c
+++ b/modules/vidloop/vidloop.c
@@ -266,6 +266,7 @@ static int print_stats(struct re_printf *pf, const struct video_loop *vl)
/* Source */
if (vl->vsrc) {
+ struct vidsrc *vs = vidsrc_get(vl->vsrc);
double avg_fps = .0;
if (vl->stats.src_frames >= 2)
@@ -273,12 +274,14 @@ static int print_stats(struct re_printf *pf, const struct video_loop *vl)
err |= re_hprintf(pf,
"* Source\n"
+ " module %s\n"
" resolution %u x %u (actual %u x %u)\n"
" pixformat %s\n"
" frames %llu\n"
" framerate %.2f fps (avg %.2f fps)\n"
"\n"
,
+ vs->name,
cfg->width, cfg->height,
vl->src_size.w, vl->src_size.h,
vidfmt_name(vl->src_fmt),
@@ -345,13 +348,17 @@ static int print_stats(struct re_printf *pf, const struct video_loop *vl)
/* Display */
if (vl->vidisp) {
+ struct vidisp *vd = vidisp_get(vl->vidisp);
+
err |= re_hprintf(pf,
"* Display\n"
+ " module %s\n"
" resolution %u x %u\n"
" fullscreen %s\n"
" frames %llu\n"
"\n"
,
+ vd->name,
vl->disp_size.w, vl->disp_size.h,
cfg->fullscreen ? "Yes" : "No",
vl->stats.disp_frames);