video: Make a noise only for failure case. 93/224893/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 16 Jan 2020 10:37:01 +0000 (19:37 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 17 Feb 2020 02:34:04 +0000 (02:34 +0000)
Change-Id: Ia9f76252b396e27b6079bc1583761d452da5df54

src/bin/video/e_client_video.c

index 4af4a21d8fb2aa621359259362fcf1c91d5a26a5..bddef2fc2c3fb701acedb88e1ce9504834989dbd 100644 (file)
@@ -6,12 +6,17 @@
    E_Client_Video *ecv;                               \
    ecv = evas_object_data_get(ec->frame, EO_DATA_KEY)
 
-#define IFACE_CHECK_RET(iname, ret)                   \
-   INTERNAL_DATA_GET;                                 \
-   EINA_SAFETY_ON_NULL_RETURN_VAL(ecv, ret);          \
-   VDB(#iname, ec);                                   \
-   if (!ecv->iface->iname)                            \
-      return ret
+#define IFACE_CHECK_RET(iname, ret)                                        \
+   INTERNAL_DATA_GET;                                                      \
+   EINA_SAFETY_ON_NULL_RETURN_VAL(ecv, ret);                               \
+   do                                                                      \
+     {                                                                     \
+        if (!ecv->iface->iname)                                            \
+          {                                                                \
+             VER("No implementation for this interface(%s)", ec, #iname);  \
+             return ret;                                                   \
+          }                                                                \
+     } while (0)
 
 struct _E_Client_Video
 {