]> git.sesse.net Git - vlc/blobdiff - modules/codec/fluidsynth.c
x264: actually add that sei in first block
[vlc] / modules / codec / fluidsynth.c
index 129aab87ad34b06bdfb813a1f91b48191348d81e..4a967c270ef576e954cd99192f3f9f7b898807d1 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * fluidsynth.c: Software MIDI synthetizer using libfluidsynth
+ * fluidsynth.c: Software MIDI synthesizer using libfluidsynth
  *****************************************************************************
  * Copyright © 2007 Rémi Denis-Courmont
  * $Id$
@@ -54,7 +54,7 @@ static int  Open  (vlc_object_t *);
 static void Close (vlc_object_t *);
 
 vlc_module_begin ()
-    set_description (N_("FluidSynth MIDI synthetizer"))
+    set_description (N_("FluidSynth MIDI synthesizer"))
     set_capability ("decoder", 100)
     set_shortname (N_("FluidSynth"))
     set_category (CAT_INPUT)
@@ -93,7 +93,8 @@ static int Open (vlc_object_t *p_this)
         dialog_Fatal (p_this, _("MIDI synthesis not set up"),
             _("A sound font file (.SF2) is required for MIDI synthesis.\n"
               "Please install a sound font and configure it "
-              "from the VLC preferences (Codecs / Audio / FluidSynth).\n"));
+              "from the VLC preferences "
+              "(Input / Codecs > Audio codecs > FluidSynth).\n"));
         return VLC_EGENERIC;
     }
 
@@ -238,7 +239,7 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
     unsigned samples =
         (p_block->i_pts - date_Get (&p_sys->end_date)) * 441 / 10000;
     if (samples == 0)
-        return NULL;
+        goto drop;
 
     p_out = decoder_NewAudioBuffer (p_dec, samples);
     if (p_out == NULL)