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

Unified Diff: media/tools/player_x11/player_x11.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « media/filters/pipeline_integration_test_base.cc ('k') | net/base/default_server_bound_cert_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_x11/player_x11.cc
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index b1c814eacd81cd3c0bcd71b5d80e6f5175428dca..836c301a3a7415909ccbeca4adf65e485a8253c3 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -92,8 +92,8 @@ void Paint(MessageLoop* message_loop, const PaintCB& paint_cb) {
scoped_refptr<media::VideoFrame> video_frame;
g_video_renderer->GetCurrentFrame(&video_frame);
- if (video_frame)
- paint_cb.Run(video_frame);
+ if (video_frame.get())
+ paint_cb.Run(video_frame.get());
g_video_renderer->PutCurrentFrame(video_frame);
}
« no previous file with comments | « media/filters/pipeline_integration_test_base.cc ('k') | net/base/default_server_bound_cert_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698