fb: do not segfault when OpenDisplay() fails in Create().
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 11 Feb 2009 16:05:32 +0000 (17:05 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 17 Feb 2009 11:40:14 +0000 (12:40 +0100)
commit94fb5c71c977c60204a0aa38c9271b0ff7b8b01e
tree81c1cc2ac042871c00bf4c8944c5b4bc90e52252
parentfe83d5a4cb9fce7809fee29d883193ca3d4f6999
fb: do not segfault when OpenDisplay() fails in Create().

When the plugin fails to open the framebuffer, then the mmap might
not have been done yet. In this case a segmentation fault will occur
when memset is called on p_sys->p_video. (p_sys->p_video is either NULL,
or MMAP_FAILED.)
modules/video_output/fb.c