[vlc-devel] commit: mozilla: remove debug prints (Jean-Paul Saman )
git version control
git at videolan.org
Tue May 12 14:26:51 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue May 5 13:16:16 2009 +0200| [5bd53a4f0a386263e09ae4688f2d047fe18dcfdc] | committer: Jean-Paul Saman
mozilla: remove debug prints
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bd53a4f0a386263e09ae4688f2d047fe18dcfdc
---
projects/mozilla/vlcplugin.cpp | 5 ++---
projects/mozilla/vlcshell.cpp | 28 ----------------------------
2 files changed, 2 insertions(+), 31 deletions(-)
diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 51704b1..0d137cd 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -136,7 +136,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
/* parse plugin arguments */
for( int i = 0; i < argc ; i++ )
{
- fprintf(stderr, "argn=%s, argv=%s\n", argn[i], argv[i]);
+ /* fprintf(stderr, "argn=%s, argv=%s\n", argn[i], argv[i]); */
if( !strcmp( argn[i], "target" )
|| !strcmp( argn[i], "mrl")
@@ -187,7 +187,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
}
else if( !strcmp( argn[i], "toolbar" ) )
{
-/* FIXME: Remove this when toolbar functionality has been implemented on\
+/* FIXME: Remove this when toolbar functionality has been implemented on
* MacOS X and Win32 for Firefox/Mozilla/Safari. */
#ifdef XP_UNIX
b_toolbar = boolValue(argv[i]);
@@ -199,7 +199,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
libvlc_exception_init(&ex);
libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv, &ex);
-
if( libvlc_exception_raised(&ex) )
{
libvlc_exception_clear(&ex);
diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index b59c42d..955235d 100644
--- a/projects/mozilla/vlcshell.cpp
+++ b/projects/mozilla/vlcshell.cpp
@@ -392,8 +392,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{
/* set/change parent window */
libvlc_video_set_parent(p_vlc, (libvlc_drawable_t)drawable, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
}
@@ -417,8 +415,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
clip.right = window->clipRect.right;
libvlc_video_set_viewport(p_vlc, p_plugin->getMD(&ex), &view, &clip, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
/* remember new window */
@@ -428,8 +424,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{
/* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
curwin.window = NULL;
@@ -466,8 +460,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* change/set parent */
libvlc_video_set_parent(p_vlc, (libvlc_drawable_t)drawable, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
/* remember new window */
@@ -487,8 +479,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
curwin.window = NULL;
@@ -542,8 +532,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* set/change parent window */
libvlc_video_set_parent( p_vlc, (libvlc_drawable_t) video, &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
/* remember window */
@@ -568,8 +556,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{
/* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "Exception: %s\n", libvlc_exception_get_message(&ex) );
libvlc_exception_clear(&ex);
curwin.window = NULL;
}
@@ -838,13 +824,9 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
libvlc_exception_init( &ex );
libvlc_media_player_t *p_md = p_plugin->getMD(&ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
i_playing = p_plugin->playlist_isplaying( &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
vlc_toolbar_clicked_t clicked;
@@ -859,8 +841,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
else
p_plugin->playlist_play( &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
}
break;
@@ -868,8 +848,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Stop:
{
p_plugin->playlist_stop(&ex);
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
}
break;
@@ -877,8 +855,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Fullscreen:
{
p_plugin->set_fullscreen( 1, &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
}
break;
@@ -887,8 +863,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Unmute:
{
libvlc_audio_toggle_mute( p_plugin->getVLC(), &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
}
break;
@@ -906,8 +880,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
( ((float)i_xPos-4.0 ) / ( ((float)i_width-8.0)/100) );
libvlc_media_player_set_time( p_md, f_length, &ex );
- if( libvlc_exception_raised(&ex) )
- fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex );
}
}
More information about the vlc-devel
mailing list