layer: correct error type 86/170986/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 22 Feb 2018 22:50:21 +0000 (07:50 +0900)
committerBoram Park <boram1288.park@samsung.com>
Sun, 25 Feb 2018 23:00:36 +0000 (08:00 +0900)
Change-Id: I6bc89d04588ac3f94ed129943a0be12b94fd6fb0

src/tdm_layer.c

index 3afebd1..1f757ee 100644 (file)
@@ -1115,8 +1115,6 @@ tdm_layer_get_displaying_buffer(tdm_layer *layer, tdm_error *error)
        if (private_layer->showing_buffer) {
                buffer = private_layer->showing_buffer->buffer;
        } else {
-               if (error)
-                       *error = TDM_ERROR_OPERATION_FAILED;
                _pthread_mutex_unlock(&private_display->lock);
                TDM_DBG("layer(%p) showing_buffer is null", private_layer);
                return NULL;
@@ -1313,7 +1311,7 @@ tdm_layer_set_video_pos(tdm_layer *layer, int zpos)
        if (!(private_layer->caps.capabilities & TDM_LAYER_CAPABILITY_VIDEO)) {
                TDM_ERR("layer(%p) is not video layer", private_layer);
                _pthread_mutex_unlock(&private_display->lock);
-               return TDM_ERROR_INVALID_PARAMETER;
+               return TDM_ERROR_BAD_REQUEST;
        }
 
        if (!func_layer->layer_set_video_pos) {