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

Unified Diff: media/gpu/h264_decoder.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: media/gpu/h264_decoder.cc
diff --git a/media/gpu/h264_decoder.cc b/media/gpu/h264_decoder.cc
index 8bb39d847e06f597c741dbf2d45a40c06cf29876..91a1d4976231d079bfd64d823f5955d5e0a2e01c 100644
--- a/media/gpu/h264_decoder.cc
+++ b/media/gpu/h264_decoder.cc
@@ -1141,7 +1141,7 @@ bool H264Decoder::ProcessSPS(int sps_id, bool* need_new_buffers) {
bool H264Decoder::FinishPrevFrameIfPresent() {
// If we already have a frame waiting to be decoded, decode it and finish.
- if (curr_pic_ != NULL) {
+ if (curr_pic_) {
if (!DecodePicture())
return false;

Powered by Google App Engine
This is Rietveld 408576698