]> git.sesse.net Git - vlc/blobdiff - modules/codec/sdl_image.c
Print error when chroma is not supported
[vlc] / modules / codec / sdl_image.c
index a5c51ff97033c20ec10ebde3dd9c1702c04263c4..610696f174e642294910ce05a95bbdb88fa84a77 100644 (file)
@@ -25,7 +25,8 @@
  * Preamble
  *****************************************************************************/
 #include <vlc/vlc.h>
-#include <vlc/decoder.h>
+#include <vlc_codec.h>
+#include <vlc_vout.h>
 
 #include SDL_IMAGE_INCLUDE_FILE
 
@@ -51,6 +52,7 @@ static picture_t *DecodeBlock  ( decoder_t *, block_t ** );
 vlc_module_begin();
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_VCODEC );
+    set_shortname( _("SDL Image decoder"));
     set_description( _("SDL_image video decoder") );
     set_capability( "decoder", 60 );
     set_callbacks( OpenDecoder, CloseDecoder );
@@ -60,7 +62,7 @@ vlc_module_end();
 static const struct supported_fmt_t
 {
     vlc_fourcc_t i_fourcc;
-    char *psz_sdl_type;
+    const char *psz_sdl_type;
 } p_supported_fmt[] =
 {
     { VLC_FOURCC('t','g','a',' '), "TGA" },