diff options
| author | phintuka <phintuka> | 2009-07-05 11:24:14 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2009-07-05 11:24:14 +0000 |
| commit | 64f65e8532fd36aa8e0367e99fac367557419d62 (patch) | |
| tree | 059a554087c0b7a66d3d9087069e29ba0819cc97 | |
| parent | 00c0129386e6cc5fd9c81a1fafaa72bb3df8d38b (diff) | |
| download | xineliboutput-64f65e8532fd36aa8e0367e99fac367557419d62.tar.gz xineliboutput-64f65e8532fd36aa8e0367e99fac367557419d62.tar.bz2 | |
Dispose osd manager only if it exists (fixes segfault when connection setup fails)
| -rw-r--r-- | xine_input_vdr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index b1266aea..de9b09fa 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.254 2009-07-05 11:21:00 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.255 2009-07-05 11:24:14 phintuka Exp $ * */ @@ -4492,8 +4492,10 @@ static void vdr_plugin_dispose (input_plugin_t *this_gen) } /* OSD */ - this->osd_manager->dispose(this->osd_manager, this->stream); - this->osd_manager = NULL; + if (this->osd_manager) { + this->osd_manager->dispose(this->osd_manager, this->stream); + this->osd_manager = NULL; + } /* restore video properties */ if(this->video_properties_saved) |
