]> git.sesse.net Git - vlc/commitdiff
No need to add a '\n' at the end of messages passed to msg_*
authorRémi Duraffort <ivoire@videolan.org>
Thu, 12 Feb 2009 17:11:36 +0000 (18:11 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 14 Feb 2009 08:06:32 +0000 (09:06 +0100)
26 files changed:
modules/access/cdda/access.c
modules/access/dv.c
modules/access/vcd/cdrom.c
modules/access/vcd/vcd.c
modules/audio_filter/spatializer/spatializer.cpp
modules/codec/avcodec/encoder.c
modules/codec/dirac.c
modules/codec/kate.c
modules/codec/quicktime.c
modules/control/dbus.c
modules/gui/pda/pda_callbacks.c
modules/gui/qt4/components/extended_panels.cpp
modules/meta_engine/taglib.cpp
modules/misc/svg.c
modules/services_discovery/sap.c
modules/stream_out/mosaic_bridge.c
modules/video_filter/chain.c
modules/video_filter/opencv_example.cpp
modules/video_filter/opencv_wrapper.c
modules/video_filter/osdmenu.c
modules/video_output/omapfb.c
modules/video_output/x11/xvmc.c
src/libvlc.c
src/misc/filter_chain.c
src/network/tcp.c
src/video_output/video_output.c

index 942b8e7879feaec592f7b61bec8aef2b9c7b697f..da76ede67f3f641e802e62f058527e897c7e405d 100644 (file)
@@ -302,14 +302,14 @@ static block_t * CDDAReadBlocks( access_t * p_access )
                 char *psz_mes = cdio_cddap_messages( p_cdda->paranoia_cd );
 
                 if( psz_mes || psz_err )
-                    msg_Err( p_access, "%s%s\n", psz_mes ? psz_mes: "",
+                    msg_Err( p_access, "%s%s", psz_mes ? psz_mes: "",
                              psz_err ? psz_err: "" );
 
                 free( psz_err );
                 free( psz_mes );
                 if( !p_readbuf )
                 {
-                    msg_Err( p_access, "paranoia read error on frame %i\n",
+                    msg_Err( p_access, "paranoia read error on frame %i",
                     p_cdda->i_lsn+i );
                 }
                 else
index b1f6b9633bfb9f63e605640d3439ceb6ae782859..e6922571e8e9e131b7336235ea96c24c0586ad40 100644 (file)
@@ -483,7 +483,7 @@ static int Raw1394GetNumPorts( access_t *p_access )
 
     if ( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to get port info: %m.\n" );
+        msg_Err( p_access, "raw1394 - failed to get port info: %m." );
         raw1394_destroy_handle( handle );
         return VLC_EGENERIC;
     }
@@ -573,7 +573,7 @@ static int DiscoverAVC( access_t *p_access, int* port, uint64_t guid )
                 /* select first AV/C Tape Reccorder Player node */
                 if( rom1394_get_directory( handle, i, &rom_dir ) < 0 )
                 {
-                    msg_Err( p_access, "error reading config rom directory for node %d\n", i );
+                    msg_Err( p_access, "error reading config rom directory for node %d", i );
                     continue;
                 }
                 if( ( rom1394_get_node_type( &rom_dir ) == ROM1394_NODE_TYPE_AVC ) &&
index 4ac51277dc4c0757e89db177c5420bce493ca96f..5ece9962c2c871bb8b960dd5f2884cda6204c435 100644 (file)
@@ -728,7 +728,7 @@ int ioctl_ReadSectors( vlc_object_t *p_this, const vcddev_t *p_vcddev,
         }
         if( sc.retsts || sc.error )
         {
-            msg_Err( p_this, "SCSI command failed: status %d error %d\n",
+            msg_Err( p_this, "SCSI command failed: status %d error %d",
                              sc.retsts, sc.error );
             if( i_type == VCD_TYPE ) free( p_block );
            return -1;
index 4747221462ae95309f02e296a5b5cdc30ac90616..96e400c3c01983b075ac5b855e4b704146d20e0f 100644 (file)
@@ -180,8 +180,8 @@ static int Open( vlc_object_t *p_this )
     {
         input_title_t *t = p_sys->title[i] = vlc_input_title_New();
 
-        msg_Dbg( p_access, "title[%d] start=%d\n", i, p_sys->p_sectors[1+i] );
-        msg_Dbg( p_access, "title[%d] end=%d\n", i, p_sys->p_sectors[i+2] );
+        msg_Dbg( p_access, "title[%d] start=%d", i, p_sys->p_sectors[1+i] );
+        msg_Dbg( p_access, "title[%d] end=%d", i, p_sys->p_sectors[i+2] );
 
         t->i_size = ( p_sys->p_sectors[i+2] - p_sys->p_sectors[i+1] ) *
                     (int64_t)VCD_DATA_SIZE;
@@ -490,7 +490,7 @@ static int EntryPoints( access_t *p_access )
         if( i_title < 0 ) continue;   /* Should not occur */
         if( i_title >= p_sys->i_titles ) continue;
 
-        msg_Dbg( p_access, "Entry[%d] title=%d sector=%d\n",
+        msg_Dbg( p_access, "Entry[%d] title=%d sector=%d",
                  i, i_title, i_sector );
 
         s = vlc_seekpoint_New();
index 822029f2bb8b17a3a2766a75bcaba3032d6cd5bf..2bee57e8e1042873aadaed74bc1dae47d20d5378 100644 (file)
@@ -131,7 +131,7 @@ static int Open( vlc_object_t *p_this )
     aout_filter_t     *p_filter = (aout_filter_t *)p_this;
     aout_filter_sys_t *p_sys;
     bool         b_fit = true;
-    msg_Dbg(p_this, "Opening filter spatializer %s %s %d\n", __FILE__,__func__,__LINE__);
+    msg_Dbg(p_this, "Opening filter spatializer %s %s %d", __FILE__,__func__,__LINE__);
 
     if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
         p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
@@ -185,7 +185,7 @@ static void Close( vlc_object_t *p_this )
     delete p_sys->p_reverbm;
     vlc_mutex_destroy( &p_sys->lock );
     free( p_sys );
-    msg_Dbg(p_this, "Closing filter spatializer %s %s %d\n", __FILE__,__func__,__LINE__);
+    msg_Dbg(p_this, "Closing filter spatializer %s %s %d", __FILE__,__func__,__LINE__);
 }
 
 /*****************************************************************************
@@ -280,7 +280,7 @@ static int RoomCallback( vlc_object_t *p_this, char const *psz_cmd,
     CLocker locker( &p_sys->lock );
 
     p_sys->p_reverbm->setroomsize(newval.f_float);
-    msg_Dbg (p_this,"room callback %3.1f %s %s %d\n", newval.f_float, __FILE__,__func__,__LINE__);
+    msg_Dbg (p_this,"room callback %3.1f %s %s %d", newval.f_float, __FILE__,__func__,__LINE__);
     return VLC_SUCCESS;
 }
 
@@ -291,7 +291,7 @@ static int WidthCallback( vlc_object_t *p_this, char const *psz_cmd,
     CLocker locker( &p_sys->lock );
 
     p_sys->p_reverbm->setwidth(newval.f_float);
-    msg_Dbg (p_this,"width callback %3.1f %s %s %d\n", newval.f_float,  __FILE__,__func__,__LINE__);
+    msg_Dbg (p_this,"width callback %3.1f %s %s %d", newval.f_float,  __FILE__,__func__,__LINE__);
     return VLC_SUCCESS;
 }
 static int WetCallback( vlc_object_t *p_this, char const *psz_cmd,
@@ -301,7 +301,7 @@ static int WetCallback( vlc_object_t *p_this, char const *psz_cmd,
     CLocker locker( &p_sys->lock );
 
     p_sys->p_reverbm->setwet(newval.f_float);
-    msg_Dbg (p_this,"wet callback %3.1f %s %s %d\n", newval.f_float,  __FILE__,__func__,__LINE__);
+    msg_Dbg (p_this,"wet callback %3.1f %s %s %d", newval.f_float,  __FILE__,__func__,__LINE__);
     return VLC_SUCCESS;
 }
 static int DryCallback( vlc_object_t *p_this, char const *psz_cmd,
@@ -311,7 +311,7 @@ static int DryCallback( vlc_object_t *p_this, char const *psz_cmd,
     CLocker locker( &p_sys->lock );
 
     p_sys->p_reverbm->setdry(newval.f_float);
-    msg_Dbg (p_this,"dry callback %3.1f %s %s %d\n", newval.f_float, __FILE__,__func__,__LINE__);
+    msg_Dbg (p_this,"dry callback %3.1f %s %s %d", newval.f_float, __FILE__,__func__,__LINE__);
     return VLC_SUCCESS;
 }
 static int DampCallback( vlc_object_t *p_this, char const *psz_cmd,
@@ -321,7 +321,7 @@ static int DampCallback( vlc_object_t *p_this, char const *psz_cmd,
     CLocker locker( &p_sys->lock );
 
     p_sys->p_reverbm->setdamp(newval.f_float);
-    msg_Dbg (p_this, "damp callback %3.1f %s %s %d\n", newval.f_float, __FILE__,__func__,__LINE__);
+    msg_Dbg (p_this, "damp callback %3.1f %s %s %d", newval.f_float, __FILE__,__func__,__LINE__);
     return VLC_SUCCESS;
 }
 
index 0e8a0c71cb1b6295a8097a5b3fd5c7b49387101b..6cbe672600edfda22cc1bb54d2b056ac74aa25a4 100644 (file)
@@ -245,7 +245,7 @@ int OpenEncoder( vlc_object_t *p_this )
         msg_Err( p_enc, "cannot find encoder %s\n"
 "*** Your FFMPEG installation is crippled.   ***\n"
 "*** Please check with your FFMPEG packager. ***\n"
-"*** This is NOT a VLC media player issue.   ***\n", psz_namecodec );
+"*** This is NOT a VLC media player issue.   ***", psz_namecodec );
 
         intf_UserFatal( p_enc, false, _("Streaming / Transcoding failed"), _(
 /* I have had enough of all these MPEG-3 transcoding bug reports.
index 7367fd067b25f327642cfc01b6161157c4948ef8..8505bd2822206cb30b1de8f36490b2f69d00eb42 100644 (file)
@@ -800,7 +800,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic )
         p_sys->p_dirac = dirac_encoder_init( &p_sys->ctx, 0 );
         if( !p_sys->p_dirac )
         {
-            msg_Err( p_enc, "Failed to initialize dirac encoder\n" );
+            msg_Err( p_enc, "Failed to initialize dirac encoder" );
             p_enc->b_error = 1;
             return NULL;
         }
index dc91302fedd6e5eb3bbfd460b5d1a023845de121..6af25e4d25a7a2f613e59af2ecc2d81d81df0495 100644 (file)
@@ -709,13 +709,13 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h )
     {
         *w = p_sys->ki.original_canvas_width;
         *h = p_sys->ki.original_canvas_height;
-        msg_Dbg( p_dec, "original canvas %zu %zu\n",
+        msg_Dbg( p_dec, "original canvas %zu %zu",
                 p_sys->ki.original_canvas_width, p_sys->ki.original_canvas_height );
     }
     else
     {
         /* nothing, leave defaults */
-        msg_Dbg( p_dec, "original canvas size unknown\n");
+        msg_Dbg( p_dec, "original canvas size unknown");
     }
 #else
     /* keep this just in case it might be allowed one day ;) */
@@ -734,7 +734,7 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h )
             *w = p_vout->fmt_in.i_width;
             *h = p_vout->fmt_in.i_height;
         }
-        msg_Dbg( p_dec, "video: in %d %d, out %d %d, original canvas %zu %zu\n",
+        msg_Dbg( p_dec, "video: in %d %d, out %d %d, original canvas %zu %zu",
                  p_vout->fmt_in.i_width, p_vout->fmt_in.i_height,
                  p_vout->fmt_out.i_width, p_vout->fmt_out.i_height,
                  p_sys->ki.original_canvas_width, p_sys->ki.original_canvas_height );
@@ -1110,7 +1110,7 @@ static int OnConfigurationChanged( decoder_t *p_dec, const char *psz_var,
 
     vlc_mutex_lock( &p_sys->lock );
 
-    msg_Dbg( p_dec, "OnConfigurationChanged: %s\n", psz_var );
+    msg_Dbg( p_dec, "OnConfigurationChanged: %s", psz_var );
 
     if( !p_sys->b_use_tiger || !p_sys->p_tr )
     {
@@ -1366,7 +1366,7 @@ static subpicture_t *SetupSimpleKateSPU( decoder_t *p_dec, subpicture_t *p_spu,
         /* create the bitmap */
         CreateKateBitmap( p_bitmap_region->p_picture, ev->bitmap );
 
-        msg_Dbg(p_dec, "Created bitmap, %zux%zu, %zu colors\n", ev->bitmap->width, ev->bitmap->height, ev->palette->ncolors);
+        msg_Dbg(p_dec, "Created bitmap, %zux%zu, %zu colors", ev->bitmap->width, ev->bitmap->height, ev->palette->ncolors);
     }
 
     /* text region */
index b9ef7aea4033531aa087918db6d648dd2abcc1ed..9692208759f6b5528ca57647e785ba90e76c7ce3 100644 (file)
@@ -746,17 +746,17 @@ static int OpenVideo( decoder_t *p_dec )
 
     memset( &icap, 0, sizeof( ImageSubCodecDecompressCapabilities ) );
     cres =  p_sys->ImageCodecInitialize( p_sys->ci, &icap );
-    msg_Dbg( p_dec, "ImageCodecInitialize->0x%X size=%d (%d)\n",
+    msg_Dbg( p_dec, "ImageCodecInitialize->0x%X size=%d (%d)",
              (int)cres, (int)icap.recordSize, (int)icap.decompressRecordSize);
 
     memset( &cinfo, 0, sizeof( CodecInfo ) );
     cres =  p_sys->ImageCodecGetCodecInfo( p_sys->ci, &cinfo );
     msg_Dbg( p_dec,
-             "Flags: compr: 0x%x decomp: 0x%x format: 0x%x\n",
+             "Flags: compr: 0x%x decomp: 0x%x format: 0x%x",
              (unsigned int)cinfo.compressFlags,
              (unsigned int)cinfo.decompressFlags,
              (unsigned int)cinfo.formatFlags );
-    msg_Dbg( p_dec, "quicktime_video: Codec name: %.*s\n",
+    msg_Dbg( p_dec, "quicktime_video: Codec name: %.*s",
              ((unsigned char*)&cinfo.typeName)[0],
              ((unsigned char*)&cinfo.typeName)+1 );
 
@@ -822,7 +822,7 @@ static int OpenVideo( decoder_t *p_dec )
                                           p_sys->plane,
                                           p_dec->fmt_in.video.i_width * 2 );
 
-    msg_Dbg( p_dec, "NewGWorldFromPtr returned:%ld\n",
+    msg_Dbg( p_dec, "NewGWorldFromPtr returned:%ld",
              65536 - ( i_result&0xffff ) );
 
     memset( &p_sys->decpar, 0, sizeof( CodecDecompressParams ) );
@@ -840,7 +840,7 @@ static int OpenVideo( decoder_t *p_dec )
     p_sys->decpar.dstPixMap        = **p_sys->GetGWorldPixMap( p_sys->OutBufferGWorld );/*destPixmap;  */
 
     cres =  p_sys->ImageCodecPreDecompress( p_sys->ci, &p_sys->decpar );
-    msg_Dbg( p_dec, "quicktime_video: ImageCodecPreDecompress cres=0x%X\n",
+    msg_Dbg( p_dec, "quicktime_video: ImageCodecPreDecompress cres=0x%X",
              (int)cres );
 
     es_format_Init( &p_dec->fmt_out, VIDEO_ES, VLC_FOURCC( 'Y', 'U', 'Y', '2' ));
@@ -937,7 +937,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
         if( cres &0xFFFF )
         {
             msg_Dbg( p_dec, "quicktime_video: ImageCodecBandDecompress"
-                     " cres=0x%X (-0x%X) %d :(\n",
+                     " cres=0x%X (-0x%X) %d :(",
                      (int)cres,(int)-cres, (int)cres );
         }
 
index 6da7504453dbff020f0f9b96ac8fda429f3993ab..3d1390fbffe3acb087c276efc14b6c89b2616ffb 100644 (file)
@@ -195,7 +195,7 @@ DBUS_METHOD( PositionSet )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -243,7 +243,7 @@ DBUS_METHOD( VolumeSet )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -392,7 +392,7 @@ DBUS_METHOD( AddTrack )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -443,7 +443,7 @@ DBUS_METHOD( GetMetadata )
     {
         PL_UNLOCK;
         pl_Release( (vlc_object_t*) p_this );
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -488,7 +488,7 @@ DBUS_METHOD( DelTrack )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -525,7 +525,7 @@ DBUS_METHOD( SetLoop )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -556,7 +556,7 @@ DBUS_METHOD( Repeat )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -588,7 +588,7 @@ DBUS_METHOD( SetRandom )
 
     if( dbus_error_is_set( &error ) )
     {
-        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s\n",
+        msg_Err( (vlc_object_t*) p_this, "D-Bus message reading : %s",
                 error.message );
         dbus_error_free( &error );
         return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
index 9811b799682db3acb4671294b6437166a3c1fd5e..0fb187ab786bdee95c17808c5fdbbdff6e07dd86 100644 (file)
@@ -490,7 +490,7 @@ void onFileListRow(GtkTreeView *treeview, GtkTreePath *path,
         p_model = gtk_tree_view_get_model(treeview);
         if (!p_model)
         {
-            msg_Err(p_intf, "PDA: Filelist model contains a NULL pointer\n" );
+            msg_Err(p_intf, "PDA: Filelist model contains a NULL pointer" );
             return;
         }
         if (!gtk_tree_model_get_iter(p_model, &iter, path))
@@ -785,7 +785,7 @@ void onPlaylistRow(GtkTreeView *treeview, GtkTreePath *path,
         p_model = gtk_tree_view_get_model(treeview);
         if (!p_model)
         {
-            msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer\n" );
+            msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer" );
             return;
         }
         if (!gtk_tree_model_get_iter(p_model, &iter, path))
index 349dca46cf20c52c481de0f32b4fd66fd4ad783d..b78a3ba47a6c39d412b5cec61a5c4025fda92919 100644 (file)
@@ -251,7 +251,7 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
     module_t *p_obj = module_find( psz_name );
     if( !p_obj )
     {
-        msg_Err( p_intf, "Unable to find filter module \"%s\n.", psz_name );
+        msg_Err( p_intf, "Unable to find filter module \"%s\".", psz_name );
         return;
     }
 
index 504835a602ba8abd7f19bccf624ed9345177836e..c5740aa068f066e6ade7b2e980c810f2384f4ef3 100644 (file)
@@ -550,7 +550,7 @@ static int WriteMeta( vlc_object_t *p_this )
 
     if( f.isNull() || !f.tag() || f.file()->readOnly() )
     {
-        msg_Err( p_this, "File %s can't be opened for tag writing\n",
+        msg_Err( p_this, "File %s can't be opened for tag writing",
             p_export->psz_file );
         return VLC_EGENERIC;
     }
index afaa6f7ea182dac4876c3b66b1c1695f0d87b571..78f68287404065ee7c911a59cc65f9974a66ef96 100644 (file)
@@ -415,14 +415,14 @@ static void svg_RenderPicture( filter_t *p_filter,
                  ( guchar* )p_svg->psz_text, strlen( p_svg->psz_text ),
                  &error ) )
     {
-        msg_Err( p_filter, "error while rendering SVG: %s\n", error->message );
+        msg_Err( p_filter, "error while rendering SVG: %s", error->message );
         g_object_unref( G_OBJECT( p_handle ) );
         return;
     }
 
     if( ! rsvg_handle_close( p_handle, &error ) )
     {
-        msg_Err( p_filter, "error while rendering SVG (close): %s\n", error->message );
+        msg_Err( p_filter, "error while rendering SVG (close): %s", error->message );
         g_object_unref( G_OBJECT( p_handle ) );
         return;
     }
index b7286ff31fdaf806be082041245b55a4fa5b5546..a7cde36d8d4cd4d238da5aa14250c7e8efe3791c 100644 (file)
@@ -1246,7 +1246,7 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
                  || ((p_sdp->orig_ip_version != 4)
                   && (p_sdp->orig_ip_version != 6)))
                 {
-                    msg_Dbg (p_obj, "SDP origin not supported: %s\n", data);
+                    msg_Dbg (p_obj, "SDP origin not supported: %s", data);
                     /* Or maybe out-of-range, but this looks suspicious */
                     return NULL;
                 }
index 247a7dfc22e0a91e14e3da2ab93fc145ee4e745b..e7a8d85e809bdc4100cfe0dc69c302516470fcb2 100644 (file)
@@ -434,7 +434,7 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 
     /* Create user specified video filters */
     psz_chain = var_GetNonEmptyString( p_stream, CFG_PREFIX "vfilter" );
-    msg_Dbg( p_stream, "psz_chain: %s\n", psz_chain );
+    msg_Dbg( p_stream, "psz_chain: %s", psz_chain );
     if( psz_chain )
     {
         p_sys->p_vf2 = filter_chain_New( p_stream, "video filter2", false,
index 4d8b16c4bb543b18483b203a543ec87837a4c6a3..d56f67e5e85e77b9d9cb03b9e423e11bb6d6b984 100644 (file)
@@ -182,13 +182,13 @@ static int BuildChromaChain( filter_t *p_filter )
 
     if( var_Create( p_filter, MODULE_STRING"-level", VLC_VAR_INTEGER | (b_first ? VLC_VAR_DOINHERIT : 0 ) ) )
     {
-        msg_Err( p_filter, "Failed to create %s variable\n", psz_option );
+        msg_Err( p_filter, "Failed to create %s variable", psz_option );
         return VLC_EGENERIC;
     }
     int i_level = var_GetInteger( p_filter, psz_option );
     if( i_level >= CHAIN_LEVEL_MAX )
     {
-        msg_Err( p_filter, "Too high level of recursion (%d)\n", i_level );
+        msg_Err( p_filter, "Too high level of recursion (%d)", i_level );
         return VLC_EGENERIC;
     }
     var_SetInteger( p_filter, psz_option, i_level + 1 );
index aa6ed84f25929eb73c2098007f7fc48869ec64df..310e16f717762bfe704ee4eb4d2e60b3013adcbd 100644 (file)
@@ -103,11 +103,11 @@ static int OpenFilter( vlc_object_t *p_this )
     //create the VIDEO_FILTER_EVENT_VARIABLE
     vlc_value_t val;
     if (var_Create( p_filter->p_libvlc, VIDEO_FILTER_EVENT_VARIABLE, VLC_VAR_ADDRESS | VLC_VAR_DOINHERIT ) != VLC_SUCCESS)
-        msg_Err( p_filter, "Could not create %s\n", VIDEO_FILTER_EVENT_VARIABLE);
+        msg_Err( p_filter, "Could not create %s", VIDEO_FILTER_EVENT_VARIABLE);
 
     val.p_address = &(p_sys->event_info);
     if (var_Set( p_filter->p_libvlc, VIDEO_FILTER_EVENT_VARIABLE, val )!=VLC_SUCCESS)
-        msg_Err( p_filter, "Could not set %s\n", VIDEO_FILTER_EVENT_VARIABLE);
+        msg_Err( p_filter, "Could not set %s", VIDEO_FILTER_EVENT_VARIABLE);
 
     //OpenCV init specific to this example
     char* filename = config_GetPsz( p_filter, "opencv-haarcascade-file" );
@@ -197,7 +197,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
         CvRect* r;
         if (faces && (faces->total > 0))
         {
-            //msg_Dbg( p_filter, "Found %d face(s)\n", faces->total );
+            //msg_Dbg( p_filter, "Found %d face(s)", faces->total );
             if (NULL != p_filter->p_sys->event_info.p_region)
             {
                 free(p_filter->p_sys->event_info.p_region);
index 787240b3996d38e7d4494ef77adcc1bcbb158a0d..64c1d590599479dc215fc5467c20fcbbaf4ddd74 100644 (file)
@@ -533,7 +533,7 @@ static void VlcPictureToIplImage( vout_thread_t *p_vout, picture_t *p_in )
     finish = clock();
     duration = (double)(finish - start) / CLOCKS_PER_SEC;
     if (p_sys->i_verbosity > VERB_WARN)
-        msg_Dbg( p_vout, "VlcPictureToIplImageRgb took %2.4f seconds\n", duration );
+        msg_Dbg( p_vout, "VlcPictureToIplImageRgb took %2.4f seconds", duration );
 }
 
 /*****************************************************************************
@@ -586,7 +586,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
     finish = clock();
     duration = (double)(finish - start) / CLOCKS_PER_SEC;
     if (p_vout->p_sys->i_verbosity > VERB_WARN)
-        msg_Dbg( p_vout, "Render took %2.4f seconds\n", duration );
+        msg_Dbg( p_vout, "Render took %2.4f seconds", duration );
 
     ReleaseImages(p_vout);
     p_outpic->date  = p_pic->date;
index 32e4e53b066568065651aa3db255b788933af36e..82816578b1a0a323a28aabbc2707152aabe6b6d6 100644 (file)
@@ -707,7 +707,7 @@ static int MouseEvent( vlc_object_t *p_this, char const *psz_var,
             osd_ButtonSelect( p_this, p_button );
             p_sys->b_update = p_sys->b_visible ? true : false;
             p_sys->b_clicked = true;
-            msg_Dbg( p_this, "mouse clicked %s (%d,%d)\n", p_button->psz_name, i_x, i_y );
+            msg_Dbg( p_this, "mouse clicked %s (%d,%d)", p_button->psz_name, i_x, i_y );
         }
     }
     return VLC_SUCCESS;
index df72a100713af7cb2d5599cf7e10155fd2f8ab27..9d6d27fbecd1e80b1d6e31f1914deeeb704f5015 100644 (file)
@@ -598,7 +598,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
     if( (p_sys->p_video = (uint8_t *)mmap( 0, p_sys->i_page_size, PROT_READ | PROT_WRITE, MAP_SHARED,
                                             p_sys->i_fd, 0 )) == MAP_FAILED )
     {
-        msg_Err( p_vout, "Can't mmap: %s\n", strerror(errno) );
+        msg_Err( p_vout, "Can't mmap: %s", strerror(errno) );
         return VLC_EGENERIC;
     }
 
@@ -615,7 +615,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
     if( (p_sys->p_null = (uint8_t *)mmap( 0, p_sys->i_page_size, PROT_READ | PROT_WRITE,
                                           MAP_PRIVATE, p_sys->i_null_fd, 0 )) == MAP_FAILED )
     {
-        msg_Err( p_vout, "Can't mmap 2: %s\n", strerror(errno) );
+        msg_Err( p_vout, "Can't mmap 2: %s", strerror(errno) );
         return VLC_EGENERIC;
     }
 
index 4c7650f0533ff30a0a120cbb962a85932c17b9c4..0d35750c920ae3a58d6f659c1979d1fffe08e5d8 100644 (file)
@@ -545,7 +545,7 @@ XvMCSubpicture *xxmc_xvmc_alloc_subpicture( vout_thread_t *p_vout,
                 return NULL;
             }
             XVMCUNLOCKDISPLAY( p_vout->p_sys->p_display );
-            msg_Dbg( p_vout, "video_out_xxmc: created subpicture %d\n", i );
+            msg_Dbg( p_vout, "video_out_xxmc: created subpicture %d", i );
             handler->subInUse[i] = 1;
             handler->subValid[i] = 1;
             pthread_mutex_unlock( &handler->mutex );
index 4ae289ff390045d7afee87b82cd96d97e01fb05d..675a913f9e934a6cfe600e6b74a30823764ed6ac 100644 (file)
@@ -718,7 +718,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                     msg_Err( p_libvlc, "verbose-objects usage: \n"
                             "--verbose-objects=+printthatobject,"
                             "-dontprintthatone\n"
-                            "(keyword 'all' to applies to all objects)\n");
+                            "(keyword 'all' to applies to all objects)");
                     free( psz_verbose_objects );
                     /* FIXME: leaks!!!! */
                     return VLC_EGENERIC;
index 65a822bd7b661fb02d0add8d55643565e8e7f565..e1d065d346c6375387a0b47e295e2768f7a912ec 100644 (file)
@@ -458,7 +458,7 @@ static picture_t *VideoBufferNew( filter_t *p_filter )
                                         p_fmt->i_width, p_fmt->i_height,
                                         p_fmt->i_aspect );
     if( !p_picture )
-        msg_Err( p_filter, "Failed to allocate picture\n" );
+        msg_Err( p_filter, "Failed to allocate picture" );
     return p_picture;
 }
 static void VideoBufferDelete( filter_t *p_filter, picture_t *p_picture )
index 04ce2a4144283ea72aa4d85733dd10e7cc73d647..b509b66b339057641f5f39aff1a19fcbb20439c0 100644 (file)
@@ -511,7 +511,7 @@ static int SocksHandshakeTCP( vlc_object_t *p_obj,
 
         if( buffer[1] != 0x00 )
         {
-            msg_Err( p_obj, "socks: CONNECT request failed\n" );
+            msg_Err( p_obj, "socks: CONNECT request failed" );
             return VLC_EGENERIC;
         }
 
index b01db69d917134d98e2290f9c327877597b8dd7f..476eb4303e88e1d05c4bd2124c40aeba443cde18 100644 (file)
@@ -1332,7 +1332,7 @@ static void* RunThread( void *p_this )
 
             p_vout->b_error = InitThread( p_vout );
             if( p_vout->b_error )
-                msg_Err( p_vout, "InitThread after VOUT_PICTURE_BUFFERS_CHANGE failed\n" );
+                msg_Err( p_vout, "InitThread after VOUT_PICTURE_BUFFERS_CHANGE failed" );
 
             vlc_cond_signal( &p_vout->p->picture_wait );
             vlc_mutex_unlock( &p_vout->picture_lock );