summaryrefslogtreecommitdiff
path: root/src/lib/video_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-06 12:26:12 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-06 12:26:12 +0100
commit1bff0990433ab0ce588acaef7c589fa623bd998b (patch)
tree65cba435e949deb6359bbf75866b52684116df06 /src/lib/video_content.cc
parent3429cf48ff2ce056413588be4151be82c8114861 (diff)
Add interface to set up still image lengths.
Diffstat (limited to 'src/lib/video_content.cc')
-rw-r--r--src/lib/video_content.cc8
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 (