video: Error noise where it's undefined case. 60/209460/2
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 31 May 2019 01:33:26 +0000 (10:33 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 8 Jul 2019 07:46:37 +0000 (16:46 +0900)
Change-Id: I66b7d030555bbe67784b5662d53215ed8bb182f2

src/bin/video/iface/e_video_hwc.c

index 3360943..1c1544e 100644 (file)
@@ -634,12 +634,14 @@ _e_video_hwc_wait_buffer_commit(E_Video_Hwc *evh)
 {
    E_Comp_Wl_Video_Buf *vbuf;
 
+   /* committed_vbuf has to be null */
+   EINA_SAFETY_ON_FALSE_RETURN(evh->committed_vbuf == NULL);
+
    vbuf = _e_video_hwc_buffer_dequeue(evh);
    if (!vbuf)
      return;
 
-   if (!evh->committed_vbuf)
-     _e_video_hwc_buffer_commit(evh, vbuf);
+   _e_video_hwc_buffer_commit(evh, vbuf);
 }
 
 static void