Commit a6e9d4a0 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Rémi Denis-Courmont

mozilla: remove debug prints

parent 82e2c4fa
......@@ -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);
......
......@@ -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 );
}
}
......
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