fixup! [M108 Migration][MM][CAPI] Support Video Hole in the onscreen rendering mode. 84/290284/2
authorVenugopal S M <sm.venugopal@samsung.com>
Wed, 22 Mar 2023 10:47:13 +0000 (16:17 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 22 Mar 2023 13:04:22 +0000 (13:04 +0000)
Fix SVACE: 536421
Uninitialized data is read from local variable.

Change-Id: I00650af74d54b44d00a0c4cf1daf3656859469ad
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc

index d25b8cd..f5cb41f 100644 (file)
@@ -181,8 +181,8 @@ void MediaPlayerBridgeCapi::Prepare(CompleteCB cb) {
       Ecore_Wl2_Window* window_handle = static_cast<Ecore_Wl2_Window*>(
           video_plane_controller_->GetVideoPlaneHandle());
       int wl_w, wl_h, wl_x, wl_y;
-#if BUILDFLAG(IS_TIZEN_TV)
       ecore_wl2_window_geometry_get(window_handle, &wl_x, &wl_y, &wl_w, &wl_h);
+#if BUILDFLAG(IS_TIZEN_TV)
       unsigned int surface_id = ecore_wl2_window_surface_id_get(window_handle);
       ret = player_set_display_webapp(player_, PLAYER_DISPLAY_TYPE_OVERLAY,
                                       surface_id, wl_h, wl_w, wl_x, wl_y);