[vlc-devel] commit: Use MAP_FAILED ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Feb 11 16:54:37 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Feb 11 17:54:27 2009 +0200| [e52f15b9ac4620a144a7f271c41d6066ae7aa7ab] | committer: Rémi Denis-Courmont
Use MAP_FAILED
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e52f15b9ac4620a144a7f271c41d6066ae7aa7ab
---
modules/video_output/fb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index eac3c2a..acec4c9 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -916,7 +916,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
PROT_READ | PROT_WRITE, MAP_SHARED,
p_sys->i_fd, 0 );
- if( p_sys->p_video == ((void*)-1) )
+ if( p_sys->p_video == MAP_FAILED )
{
msg_Err( p_vout, "cannot map video memory (%m)" );
More information about the vlc-devel
mailing list