mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +00:00
info: show the fps as a double
23.97 fps is easier to read that 10000000 / 417083.
This commit is contained in:
parent
b8ca37d70d
commit
7af6c2078e
1 changed files with 3 additions and 1 deletions
|
@ -324,7 +324,9 @@ public class MediaInfo.Info : VBox
|
|||
label = new Label ("Framerate:");
|
||||
label.set_alignment (1.0f, 0.5f);
|
||||
table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0);
|
||||
str = "%u / %u frames/second".printf (((DiscovererVideoInfo)sinfo).get_framerate_num(),((DiscovererVideoInfo)sinfo).get_framerate_denom());
|
||||
double fps_num = (double)((DiscovererVideoInfo)sinfo).get_framerate_num();
|
||||
double fps_denom = (double)((DiscovererVideoInfo)sinfo).get_framerate_denom();
|
||||
str = "%.3lf frames/second".printf (fps_num/fps_denom);
|
||||
label = new Label (str);
|
||||
label.set_alignment (0.0f, 0.5f);
|
||||
label.set_selectable(true);
|
||||
|
|
Loading…
Reference in a new issue