{
/* These decoder calls could call other content methods which take a lock on the mutex */
libdcp::Size const vs = d->native_size ();
- float const vfr = d->frames_per_second ();
+ float const vfr = d->video_frame_rate ();
{
boost::mutex::scoped_lock lm (_mutex);
_video_frame_rate = vfr;
}
- Changed (VideoContentProperty::VIDEO_SIZE);
- Changed (VideoContentProperty::VIDEO_FRAME_RATE);
+ signal_changed (VideoContentProperty::VIDEO_SIZE);
+ signal_changed (VideoContentProperty::VIDEO_FRAME_RATE);
}
string
VideoContent::information () const
{
+ if (video_size().width == 0 || video_size().height == 0) {
+ return "";
+ }
+
stringstream s;
s << String::compose (
return s.str ();
}
+
+Time
+VideoContent::temporal_length () const
+{
+ return video_length() / video_frame_rate();
+}