If a monitor is disabled by the user, then we need to set number of
authorChris Michael <cp.michael@samsung.com>
Thu, 27 Jun 2013 06:39:23 +0000 (07:39 +0100)
committerChris Michael <cp.michael@samsung.com>
Thu, 27 Jun 2013 06:39:23 +0000 (07:39 +0100)
commitbba201a8927d1988425b92c744d869e6748a274b
tree4c1a837ec379abf6b35f1fdf476e522ed65e5190
parent9080e82ec42f9d20fb8d69b431140481d8a2f11b
If a monitor is disabled by the user, then we need to set number of
outputs to zero, and free any allocated outputs before trying to apply
settings.

Also, check for valid mode (not 0) before trying to fetch mode_info.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/conf_randr/e_smart_monitor.c