p_scriptClass(NULL),
p_browser(instance),
psz_baseURL(NULL)
-#if XP_WIN
+#if defined(XP_WIN)
,pf_wndproc(NULL)
#endif
-#if XP_UNIX
+#if defined(XP_UNIX)
,i_width((unsigned)-1)
,i_height((unsigned)-1)
,i_tb_width(0)
#endif
{
memset(&npwindow, 0, sizeof(NPWindow));
-#if XP_UNIX
+#if defined(XP_UNIX)
memset(&npvideo, 0, sizeof(Window));
memset(&npcontrol, 0, sizeof(Window));
#endif
return -1;
for( int i = 0; i < optc; ++i )
- {
- libvlc_media_add_option_flag(p_m, optv[i], libvlc_media_option_unique, ex);
- if( libvlc_exception_raised(ex) )
- {
- libvlc_media_release(p_m);
- return -1;
- }
- }
+ libvlc_media_add_option_flag(p_m, optv[i], libvlc_media_option_unique);
libvlc_media_list_lock(libvlc_media_list);
libvlc_media_list_add_media(libvlc_media_list,p_m,ex);
return NULL;
}
-#if XP_UNIX
+#if defined(XP_UNIX)
int VlcPlugin::setSize(unsigned width, unsigned height)
{
int diff = (width != i_width) || (height != i_height);
libvlc_exception_init( &ex );
/* get mute info */
- b_mute = libvlc_audio_get_mute( getVLC(), &ex );
- libvlc_exception_clear( &ex );
+ b_mute = libvlc_audio_get_mute( getVLC() );
gcv.foreground = BlackPixel( p_display, 0 );
gc = XCreateGC( p_display, control, GCForeground, &gcv );
libvlc_exception_clear( &ex );
/* get mute info */
- b_mute = libvlc_audio_get_mute( getVLC(), &ex );
- libvlc_exception_clear( &ex );
+ b_mute = libvlc_audio_get_mute( getVLC() );
/* is Pause of Play button clicked */
if( (is_playing != 1) &&