Commit 5bd53a4f authored by Jean-Paul Saman's avatar Jean-Paul Saman

mozilla: remove debug prints

parent d6cc0b79
...@@ -136,7 +136,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) ...@@ -136,7 +136,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
/* parse plugin arguments */ /* parse plugin arguments */
for( int i = 0; i < argc ; i++ ) 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" ) if( !strcmp( argn[i], "target" )
|| !strcmp( argn[i], "mrl") || !strcmp( argn[i], "mrl")
...@@ -187,7 +187,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) ...@@ -187,7 +187,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
} }
else if( !strcmp( argn[i], "toolbar" ) ) 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. */ * MacOS X and Win32 for Firefox/Mozilla/Safari. */
#ifdef XP_UNIX #ifdef XP_UNIX
b_toolbar = boolValue(argv[i]); b_toolbar = boolValue(argv[i]);
...@@ -199,7 +199,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) ...@@ -199,7 +199,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
libvlc_exception_init(&ex); libvlc_exception_init(&ex);
libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv, &ex); libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv, &ex);
if( libvlc_exception_raised(&ex) ) if( libvlc_exception_raised(&ex) )
{ {
libvlc_exception_clear(&ex); libvlc_exception_clear(&ex);
......
...@@ -392,8 +392,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -392,8 +392,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{ {
/* set/change parent window */ /* set/change parent window */
libvlc_video_set_parent(p_vlc, (libvlc_drawable_t)drawable, &ex); 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); libvlc_exception_clear(&ex);
} }
...@@ -417,8 +415,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -417,8 +415,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
clip.right = window->clipRect.right; clip.right = window->clipRect.right;
libvlc_video_set_viewport(p_vlc, p_plugin->getMD(&ex), &view, &clip, &ex); 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); libvlc_exception_clear(&ex);
/* remember new window */ /* remember new window */
...@@ -428,8 +424,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -428,8 +424,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{ {
/* change/set parent */ /* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex); 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); libvlc_exception_clear(&ex);
curwin.window = NULL; curwin.window = NULL;
...@@ -466,8 +460,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -466,8 +460,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* change/set parent */ /* change/set parent */
libvlc_video_set_parent(p_vlc, (libvlc_drawable_t)drawable, &ex); 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); libvlc_exception_clear(&ex);
/* remember new window */ /* remember new window */
...@@ -487,8 +479,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -487,8 +479,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* change/set parent */ /* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex); 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); libvlc_exception_clear(&ex);
curwin.window = NULL; curwin.window = NULL;
...@@ -542,8 +532,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -542,8 +532,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
/* set/change parent window */ /* set/change parent window */
libvlc_video_set_parent( p_vlc, (libvlc_drawable_t) video, &ex ); 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); libvlc_exception_clear(&ex);
/* remember window */ /* remember window */
...@@ -568,8 +556,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -568,8 +556,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
{ {
/* change/set parent */ /* change/set parent */
libvlc_video_set_parent(p_vlc, 0, &ex); 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); libvlc_exception_clear(&ex);
curwin.window = NULL; curwin.window = NULL;
} }
...@@ -838,13 +824,9 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -838,13 +824,9 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
libvlc_media_player_t *p_md = p_plugin->getMD(&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 ); libvlc_exception_clear( &ex );
i_playing = p_plugin->playlist_isplaying( &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 ); libvlc_exception_clear( &ex );
vlc_toolbar_clicked_t clicked; vlc_toolbar_clicked_t clicked;
...@@ -859,8 +841,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -859,8 +841,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
else else
p_plugin->playlist_play( &ex ); p_plugin->playlist_play( &ex );
if( libvlc_exception_raised(&ex) )
fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
break; break;
...@@ -868,8 +848,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -868,8 +848,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Stop: case clicked_Stop:
{ {
p_plugin->playlist_stop(&ex); p_plugin->playlist_stop(&ex);
if( libvlc_exception_raised(&ex) )
fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
break; break;
...@@ -877,8 +855,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -877,8 +855,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Fullscreen: case clicked_Fullscreen:
{ {
p_plugin->set_fullscreen( 1, &ex ); p_plugin->set_fullscreen( 1, &ex );
if( libvlc_exception_raised(&ex) )
fprintf( stderr, "%s\n", libvlc_exception_get_message(&ex));
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
break; break;
...@@ -887,8 +863,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -887,8 +863,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
case clicked_Unmute: case clicked_Unmute:
{ {
libvlc_audio_toggle_mute( p_plugin->getVLC(), &ex ); 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 ); libvlc_exception_clear( &ex );
} }
break; break;
...@@ -906,8 +880,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -906,8 +880,6 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
( ((float)i_xPos-4.0 ) / ( ((float)i_width-8.0)/100) ); ( ((float)i_xPos-4.0 ) / ( ((float)i_width-8.0)/100) );
libvlc_media_player_set_time( p_md, f_length, &ex ); 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 ); libvlc_exception_clear( &ex );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment