diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-06 14:10:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-06 14:10:14 +0100 |
| commit | 454a961e1a03f60cf05040b832c4f8f01b481fa7 (patch) | |
| tree | c1e50792318179d99f4a0750ec3f4bac2dac6346 /src/lib/video_content.cc | |
| parent | ee191ec1dbea1fda4a93338c5a86e5f53c35efdc (diff) | |
Add basic timeline window.
Diffstat (limited to 'src/lib/video_content.cc')
| -rw-r--r-- | src/lib/video_content.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 9fb2b9bce..2af6ba908 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -104,3 +104,9 @@ VideoContent::information () const return s.str (); } + +Time +VideoContent::temporal_length () const +{ + return video_length() / video_frame_rate(); +} |
