Don't set supported TV formats until after RandR initialized.

The TV format property cannot be configured until RandR has been
initialized.
This commit is contained in:
Keith Packard 2007-08-28 16:00:01 -07:00
parent c6e637cd68
commit 7fd9a98178
1 changed files with 3 additions and 0 deletions

View File

@ -1507,6 +1507,9 @@ i830_tv_format_configure_property (xf86OutputPtr output)
int num_atoms = 0;
int i;
if (!output->randr_output)
return Success;
for (i = 0; i < NUM_TV_MODES; i++)
if (!tv_modes[i].component_only || dev_priv->type == TV_TYPE_COMPONENT)
current_atoms[num_atoms++] = tv_format_name_atoms[i];