*****************************************************************************/
#include <errno.h> /* ENOMEM */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
E_(EventThread), 0, 1 ) )
{
msg_Err( p_vout, "cannot create Vout EventThread" );
- vlc_object_destroy( p_vout->p_sys->p_event );
+ vlc_object_release( p_vout->p_sys->p_event );
p_vout->p_sys->p_event = NULL;
goto error;
}
}
vlc_thread_join( p_vout->p_sys->p_event );
- vlc_object_destroy( p_vout->p_sys->p_event );
+ vlc_object_release( p_vout->p_sys->p_event );
}
vlc_mutex_destroy( &p_vout->p_sys->lock );
p_vout->p_sys->i_spi_screensavetimeout, NULL, 0);
}
- if( p_vout->p_sys )
- {
- free( p_vout->p_sys );
- p_vout->p_sys = NULL;
- }
+ free( p_vout->p_sys );
+ p_vout->p_sys = NULL;
}
/*****************************************************************************
(LONG)CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey ) );
}
/*
- ** Video window is initially hidden, show it now since we got a
+ ** Video window is initially hidden, show it now since we got a
** picture to show.
*/
- SetWindowPos( p_vout->p_sys->hvideownd, NULL, 0, 0, 0, 0,
+ SetWindowPos( p_vout->p_sys->hvideownd, NULL, 0, 0, 0, 0,
SWP_ASYNCWINDOWPOS|
SWP_FRAMECHANGED|
SWP_SHOWWINDOW|
if( ( !device.psz_string || !*device.psz_string ) &&
hmon == p_vout->p_sys->hmonitor )
{
- if( device.psz_string ) free( device.psz_string );
+ free( device.psz_string );
}
else if( strcmp( psz_drivername, device.psz_string ) == 0 )
{
}
p_vout->p_sys->hmonitor = hmon;
- if( device.psz_string ) free( device.psz_string );
+ free( device.psz_string );
}
else
{
- if( device.psz_string ) free( device.psz_string );
+ free( device.psz_string );
return TRUE; /* Keep enumerating */
}
p_vout->p_sys->hddraw_dll = NULL;
}
- if( p_vout->p_sys->p_display_driver != NULL )
- {
- free( p_vout->p_sys->p_display_driver );
- p_vout->p_sys->p_display_driver = NULL;
- }
+ free( p_vout->p_sys->p_display_driver );
+ p_vout->p_sys->p_display_driver = NULL;
p_vout->p_sys->hmonitor = NULL;
}
}
/* Update desktop */
- InvalidateRect( hwnd, NULL, TRUE );
+ InvalidateRect( hwnd, NULL, TRUE );
UpdateWindow( hwnd );
}