summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-25 22:08:27 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-25 22:08:27 +0000
commitf1a9c52b716ed3f5af6cff790988546c114efc86 (patch)
treeab5188c4f69bf0b734ed7f21b9e5bc86dc1d3f85 /content
parent1629eeeaa536ec7421deec5d6de78b6a871ad713 (diff)
downloadchromium_src-f1a9c52b716ed3f5af6cff790988546c114efc86.zip
chromium_src-f1a9c52b716ed3f5af6cff790988546c114efc86.tar.gz
chromium_src-f1a9c52b716ed3f5af6cff790988546c114efc86.tar.bz2
Coverity: Initialize member variables.
CID_COUNT=12 CID=104349,104361,104373,104374,104399,104420,104421,104422,104466,104476, 104532,104538 BUG=none TEST=none R=groby TBR=brettw,satorux,mnissler Review URL: https://chromiumcodereview.appspot.com/10833006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/gamepad/platform_data_fetcher_win.cc2
-rw-r--r--content/common/gpu/media/vaapi_h264_decoder.cc6
-rw-r--r--content/common/gpu/media/vaapi_h264_decoder.h2
-rw-r--r--content/common/gpu/media/vaapi_video_decode_accelerator.cc2
4 files changed, 10 insertions, 2 deletions
diff --git a/content/browser/gamepad/platform_data_fetcher_win.cc b/content/browser/gamepad/platform_data_fetcher_win.cc
index 8a50a38..92587a4 100644
--- a/content/browser/gamepad/platform_data_fetcher_win.cc
+++ b/content/browser/gamepad/platform_data_fetcher_win.cc
@@ -147,6 +147,8 @@ void GamepadPlatformDataFetcherWin::GetGamepadData(WebGamepads* pads,
}
bool GamepadPlatformDataFetcherWin::GetXinputDllFunctions() {
+ xinput_get_capabilities_ = NULL;
+ xinput_get_state_ = NULL;
xinput_enable_ = static_cast<XInputEnableFunc>(
xinput_dll_.GetFunctionPointer("XInputEnable"));
if (!xinput_enable_)
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc
index 29a11c4..64d2441 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.cc
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc
@@ -242,11 +242,13 @@ VaapiH264Decoder::DecodeSurface::DecodeSurface(
va_display_(va_display),
make_context_current_(make_context_current),
va_surface_id_(va_surface_id),
+ input_id_(0),
picture_buffer_id_(picture_buffer_id),
texture_id_(texture_id),
width_(width),
height_(height),
available_(false),
+ poc_(0),
x_pixmap_(0),
glx_pixmap_(0) {
// Bind the surface to a texture of the given width and height,
@@ -332,6 +334,10 @@ bool VaapiH264Decoder::DecodeSurface::Sync() {
VaapiH264Decoder::VaapiH264Decoder() {
Reset();
+ curr_input_id_ = -1;
+ x_display_ = NULL;
+ fb_config_ = NULL;
+ va_display_ = NULL;
curr_sps_id_ = -1;
curr_pps_id_ = -1;
pic_width_ = -1;
diff --git a/content/common/gpu/media/vaapi_h264_decoder.h b/content/common/gpu/media/vaapi_h264_decoder.h
index 3d73abf..a2f6ab0 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.h
+++ b/content/common/gpu/media/vaapi_h264_decoder.h
@@ -274,7 +274,7 @@ class VaapiH264Decoder {
int pic_width_;
int pic_height_;
- // Data queued up for HW decoder, to be commited on next HW decode.
+ // Data queued up for HW decoder, to be committed on next HW decode.
std::queue<VABufferID> pending_slice_bufs_;
std::queue<VABufferID> pending_va_bufs_;
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
index a9bddee..75fc61d 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
@@ -28,7 +28,7 @@
using content::VaapiH264Decoder;
-VaapiVideoDecodeAccelerator::InputBuffer::InputBuffer() {
+VaapiVideoDecodeAccelerator::InputBuffer::InputBuffer() : id(0), size(0) {
}
VaapiVideoDecodeAccelerator::InputBuffer::~InputBuffer() {