Commit e52f15b9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use MAP_FAILED

parent e86bc7ed
...@@ -916,7 +916,7 @@ static int OpenDisplay( vout_thread_t *p_vout ) ...@@ -916,7 +916,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
PROT_READ | PROT_WRITE, MAP_SHARED, PROT_READ | PROT_WRITE, MAP_SHARED,
p_sys->i_fd, 0 ); 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)" ); msg_Err( p_vout, "cannot map video memory (%m)" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment