e_output: set the priority at e_output_update
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 4 Jul 2017 09:05:31 +0000 (18:05 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 5 Jul 2017 03:05:24 +0000 (12:05 +0900)
The priority of the output has to be set
even when the output is disconnected.

Change-Id: I915fe7b82a5384ed646969dbfbea6feecccb12d6

src/bin/e_output.c

index 09f13b62a787e8298803dd5d1fc3b753c8cbaeaa..b145e624aa64be549356aac262c2958292e55a5d 100644 (file)
@@ -478,6 +478,10 @@ e_output_update(E_Output *output)
         INF("E_OUTPUT: disconnected.. id: %s", output->id);
      }
 
+   /* the index of the tdm_output is higher, the tdm_output is important.
+   the priority of the e_output is higher, the e_output is more important. */
+   output->config.priority = 100 - output->index;
+
    return EINA_TRUE;
 }
 
@@ -510,10 +514,6 @@ e_output_mode_apply(E_Output *output, E_Output_Mode *mode)
    output->config.mode.h = mode->h;
    output->config.mode.refresh = mode->refresh;
 
-   /* the index of the tdm_output is higher, the tdm_output is important.
-      the priority of the e_output is higher, the e_output is more important. */
-   output->config.priority = 100 - output->index;
-
    output->config.enabled = 1;
 
    INF("E_OUTPUT: '%s' %i %i %ix%i %i %i", output->info.name,