fix svace issue 81/63381/1 accepted/tizen/common/20160323.185612 accepted/tizen/ivi/20160323.141235 accepted/tizen/mobile/20160323.140111 accepted/tizen/tv/20160323.140201 accepted/tizen/wearable/20160323.140031 submit/tizen/20160323.111733
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 23 Mar 2016 11:13:27 +0000 (20:13 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 23 Mar 2016 11:13:27 +0000 (20:13 +0900)
Change-Id: I12a672ca656968220b0fa1f3de603488178ae0e2

src/player_evas.c

index ceca321..743bd24 100644 (file)
@@ -178,14 +178,15 @@ evas_pipe_cb (void *data, void *buffer, update_info info)
 {
        mm_evas_info *evas_info = data;
        int ret;
-       g_mutex_lock (&evas_info->free_lock);
        LOGD ("[ENTER]");
 
        if (!evas_info) {
                LOGW ("evas_info is NULL", evas_info);
-               goto ERROR;
+               return;
        }
 
+       g_mutex_lock (&evas_info->free_lock);
+
        if (!evas_info->eo) {
                LOGW ("evas_info %p", evas_info);
                goto ERROR;