]> git.sesse.net Git - vlc/blobdiff - modules/mux/mpjpeg.c
Don't print a message a malloc failed.
[vlc] / modules / mux / mpjpeg.c
index b2e942a148752f6f1cc4ed29a7395796cdfc6ae9..0d53522a5977fde31a1cc9553b116f0e4e86b526 100644 (file)
@@ -29,7 +29,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_sout.h>
 #include <vlc_block.h>
@@ -44,7 +44,7 @@ static void Close  ( vlc_object_t * );
 
 vlc_module_begin();
     set_shortname( "MPJPEG" );
-    set_description( _("Multipart JPEG muxer") );
+    set_description( N_("Multipart JPEG muxer") );
     set_capability( "sout mux", 5 );
     add_obsolete_string( SOUT_CFG_PREFIX "separator" );
     set_category( CAT_SOUT );
@@ -165,7 +165,7 @@ static int Mux( sout_mux_t *p_mux )
         static const char psz_hfmt[] = "\r\n"
             "--"BOUNDARY"\r\n"
             "Content-Type: image/jpeg\r\n"
-            "Content-Length: %u\r\n"
+            "Content-Length: %zu\r\n"
             "\r\n";
         block_t *p_data = block_FifoGet( p_fifo );
         block_t *p_header = block_New( p_mux, sizeof( psz_hfmt ) + 20 );