diff options
Diffstat (limited to 'src/radeon_atombios.c')
-rw-r--r-- | src/radeon_atombios.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c index 9fe7ec72..61eb62b0 100644 --- a/src/radeon_atombios.c +++ b/src/radeon_atombios.c @@ -1593,8 +1593,10 @@ radeon_get_encoder(xf86OutputPtr output) RADEONOutputPrivatePtr radeon_output = output->driver_private; RADEONInfoPtr info = RADEONPTR(output->scrn); - return info->encoders[radeon_get_device_index(radeon_output->active_device)]; - + if (radeon_output->active_device) + return info->encoders[radeon_get_device_index(radeon_output->active_device)]; + else + return NULL; } Bool |