video: set video->old_comp_buffer as NULL on video hide. 52/139752/2
authorAnamika Singh <anamika.sd@samsung.com>
Thu, 20 Jul 2017 09:01:57 +0000 (14:31 +0530)
committerBoram Park <boram1288.park@samsung.com>
Thu, 20 Jul 2017 10:46:34 +0000 (10:46 +0000)
In second switch from inline to fullscreen when video is in pause state
video is not rendered because comp_buffer is same as old_comp_buffer.
Hence setting video->old_comp_buffer as NULL on video hide.

Signed-off-by: Anamika Singh <anamika.sd@samsung.com>
Change-Id: I4b2be540eb7e9528d00c47cba01678c85668b2a5

src/bin/e_comp_wl_video.c

index db1f333..7b3d9a8 100644 (file)
@@ -1690,6 +1690,9 @@ _e_video_hide(E_Video *video)
         video->current_fb = NULL;
      }
 
+   if (video->old_comp_buffer)
+     video->old_comp_buffer = NULL;
+
    EINA_LIST_FREE(video->committed_list, vbuf)
       e_comp_wl_video_buffer_set_use(vbuf, EINA_FALSE);