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