output: correct syntax error 60/171060/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 06:34:46 +0000 (15:34 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:50:59 +0000 (08:50 +0900)
Change-Id: I3fd9c71554093877da1e975ce4b870a9cb9a5497

src/tdm_output.c

index 115cb9d..2e3cfce 100644 (file)
@@ -316,7 +316,7 @@ tdm_output_add_change_handler(tdm_output *output,
        _pthread_mutex_lock(&private_display->lock);
 
        LIST_FOR_EACH_ENTRY(change_handler, &private_output->change_handler_list, link) {
-               if (change_handler->func == func || change_handler->user_data == user_data) {
+               if (change_handler->func == func && change_handler->user_data == user_data) {
                        TDM_ERR("can't add twice");
                        _pthread_mutex_unlock(&private_display->lock);
                        return TDM_ERROR_BAD_REQUEST;