From 849000ac83649822fc7c8e9389cd096dd6feee27 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Wed, 30 Apr 2014 15:31:24 +0300 Subject: video_out_fb: make palette setup failure non-fatal with 24/32 bit RGB modes Fixes fb video out with recent Ubuntu. --- src/video_out/video_out_fb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_out/video_out_fb.c b/src/video_out/video_out_fb.c index bba1e0b8b..bcbc8237f 100644 --- a/src/video_out/video_out_fb.c +++ b/src/video_out/video_out_fb.c @@ -984,7 +984,9 @@ static vo_driver_t *fb_open_plugin(video_driver_class_t *class_gen, if (!set_fb_palette (this->fd, &this->fb_var)) { xprintf(this->xine, XINE_VERBOSITY_LOG, "video_out_fb: set_fb_palette() failed: %s\n", strerror(errno)); - goto error; + if (this->fb_var.bits_per_pixel < 24) { + goto error; + } } this->xine = class->xine; -- cgit v1.2.3