summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-06-19 20:35:31 +0000
committerphintuka <phintuka>2008-06-19 20:35:31 +0000
commit0052b5477df1097c8fb274603c56dddb8cf32293 (patch)
tree880afaa712a62b59be85fa614aa985d0888bcefa
parent53bac300d94ab8a4025ec7f45391e5001776e2d9 (diff)
downloadxineliboutput-0052b5477df1097c8fb274603c56dddb8cf32293.tar.gz
xineliboutput-0052b5477df1097c8fb274603c56dddb8cf32293.tar.bz2
Check if video port exists before using it
-rw-r--r--xine_fbfe_frontend.c4
1 files 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,