diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-06 12:26:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-06 12:26:12 +0100 |
| commit | 1bff0990433ab0ce588acaef7c589fa623bd998b (patch) | |
| tree | 65cba435e949deb6359bbf75866b52684116df06 /src/lib/video_content.cc | |
| parent | 3429cf48ff2ce056413588be4151be82c8114861 (diff) | |
Add interface to set up still image lengths.
Diffstat (limited to 'src/lib/video_content.cc')
| -rw-r--r-- | src/lib/video_content.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 14897c570..8176c5c41 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -81,14 +81,18 @@ VideoContent::take_from_video_decoder (shared_ptr<VideoDecoder> d) _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 ( |
