From: Jean-Paul Saman Date: Tue, 5 May 2009 11:16:16 +0000 (+0200) Subject: mozilla: remove debug prints X-Git-Tag: 1.1.0-ff~6025 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5bd53a4f0a386263e09ae4688f2d047fe18dcfdc;p=vlc mozilla: remove debug prints --- diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 51704b18df..0d137cd225 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 b59c42d165..955235de5a 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 ); } }