From 0052b5477df1097c8fb274603c56dddb8cf32293 Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 19 Jun 2008 20:35:31 +0000 Subject: Check if video port exists before using it --- xine_fbfe_frontend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xine_fbfe_frontend.c b/xine_fbfe_frontend.c index 800ac68c..4645b79f 100644 --- a/xine_fbfe_frontend.c +++ b/xine_fbfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_fbfe_frontend.c,v 1.29 2008-06-19 20:19:35 phintuka Exp $ + * $Id: xine_fbfe_frontend.c,v 1.30 2008-06-19 20:35:31 phintuka Exp $ * */ @@ -85,7 +85,7 @@ typedef struct fbfe_s { static void fbfe_update_display_size(fe_t *this_gen) { fbfe_t *this = (fbfe_t*)this_gen; - if(this->fullscreen) { + if(this->fullscreen && this->x.video_port) { this->x.width = this->x.video_port->get_property(this->x.video_port, VO_PROP_WINDOW_WIDTH); this->x.height = this->x.video_port->get_property(this->x.video_port, -- cgit v1.2.3