video: Fix a defect referencing invalid ec pointer. 07/205107/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 29 Apr 2019 07:10:21 +0000 (16:10 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 29 Apr 2019 07:10:21 +0000 (16:10 +0900)
Change-Id: Ie4205648a66f14745292cdfb7caa1a208213b5ed

src/bin/video/iface/e_video_hwc_planes.c

index 139d996ec9027ff9dbdb6bfaeee640b788f8cc6e..2b8b0abd88f31f762417d906e0f5925f2d6f91e3 100644 (file)
@@ -813,12 +813,8 @@ _e_video_hwc_planes_property_save(E_Video_Hwc_Planes *evhp, unsigned int id, con
 }
 
 static void
-_e_video_hwc_planes_ec_event_init(E_Video_Hwc_Planes *evhp)
+_e_video_hwc_planes_ec_event_init(E_Video_Hwc_Planes *evhp, E_Client *ec)
 {
-   E_Client *ec;
-
-   ec = evhp->base.ec;
-
    evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_HIDE,
                                   _e_video_hwc_planes_cb_evas_hide, evhp);
 
@@ -1037,7 +1033,7 @@ e_video_hwc_planes_create(E_Output *output, E_Client *ec)
         return NULL;
      }
 
-   _e_video_hwc_planes_ec_event_init(evhp);
+   _e_video_hwc_planes_ec_event_init(evhp, ec);
    _e_video_hwc_planes_iface_set(&evhp->base.backend);
 
    return (E_Video_Hwc *)evhp;