Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: content/common/gpu/media/vaapi_h264_decoder.cc

Issue 10833006: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vaapi_h264_decoder.cc
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc
index 29a11c478c82ae3cf064b04101cbd9cd2929e8a0..64d2441440188711a443c238b6e74d744a19d414 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;
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder.h ('k') | content/common/gpu/media/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698