/*****************************************************************************
* npolibvlc.cpp: official Javascript APIs
*****************************************************************************
- * Copyright (C) 2002-2006 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
*
* Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>
+ * Jan Paul Dinger <jpd@m2x.nl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return INVOKERESULT_GENERIC_ERROR;
}
-
/*
** implementation of libvlc message object
*/
-
LibvlcLogNPObject::~LibvlcLogNPObject()
{
if( isValid() )
** implementation of libvlc playlist object
*/
-
LibvlcPlaylistNPObject::~LibvlcPlaylistNPObject()
{
if( isValid() )
}
else
{
- free(url);
+ free(url);
free(name);
return INVOKERESULT_INVALID_VALUE;
}
return r;
}
-
/*****************************************************************************
* VlcPlugin methods
*****************************************************************************/
dst_y - (p_timeline->height >> 1),
(window.width-(dst_x+BTN_SPACE)), p_timeline->height );
-
-
/* get movie position in % */
if( playlist_isplaying(&ex) )
{
vlc_toolbar_clicked_t VlcPlugin::getToolbarButtonClicked( int i_xpos, int i_ypos )
{
- unsigned int i_dest = BTN_SPACE;//(i_tb_height >> 1);
+ unsigned int i_dest = BTN_SPACE;
int is_playing = 0;
bool b_mute = false;
libvlc_exception_t ex;
+#ifndef NDEBUG
fprintf( stderr, "ToolbarButtonClicked:: "
"trying to match (%d,%d) (%d,%d)\n",
i_xpos, i_ypos, i_tb_height, i_tb_width );
-
+#endif
if( i_ypos >= i_tb_width )
return clicked_Unknown;
/*****************************************************************************
* vlcplugin.h: a VLC plugin for Mozilla
*****************************************************************************
- * Copyright (C) 2002-2008 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Damien Fouilleul <damienf@videolan.org>
- * Jean-Paul Saman <jpsaman@videolan.org>
+ * Jean-Paul Saman <jpsaman@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
if( !libvlc_media_player )
{
- libvlc_exception_raise(ex,"null mediaplayer");
+ libvlc_exception_raise(ex,"no mediaplayer");
}
return libvlc_media_player;
}
/* XSPF */ \
"application/xspf+xml:xspf:Playlist xspf;"
-
-
#endif
/*****************************************************************************
* vlcshell.cpp: a VLC plugin for Mozilla
*****************************************************************************
- * Copyright (C) 2002-2008 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
/* remember new window */
p_plugin->setWindow(*window);
}
- else if( curwin.window ) {
+ else if( curwin.window )
+ {
/* change/set parent */
libvlc_video_set_parent(p_vlc, 0, NULL);
curwin.window = NULL;
\*********************************************/
}
-
void NPP_Print( NPP instance, NPPrint* printInfo )
{
if( printInfo == NULL )