Handle a null local renderer for times when there's no local cam.

Review URL: http://webrtc-codereview.appspot.com/138015

git-svn-id: http://webrtc.googlecode.com/svn/trunk@545 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tommi@webrtc.org 2011-09-07 09:52:45 +00:00
parent 436289f622
commit a027bed377

View File

@ -377,6 +377,7 @@ void GtkMainWnd::OnRedraw() {
scaled += width * 2;
}
if (local_renderer_.get() && local_renderer_->image()) {
image = reinterpret_cast<const uint32*>(local_renderer_->image());
scaled = reinterpret_cast<uint32*>(draw_buffer_.get());
// Position the local preview on the right side.
@ -395,6 +396,7 @@ void GtkMainWnd::OnRedraw() {
}
scaled += width * 2;
}
}
gdk_draw_rgb_32_image(draw_area_->window,
draw_area_->style->fg_gc[GTK_STATE_NORMAL],