X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fnsc.c;h=015ab4039a789f7095477f72900d6624270e4384;hb=6b0dd9ac31b4d886284925b46c1757aa2bf1a213;hp=31dc3fb847f29734e9c694b50b086c70a14c6706;hpb=57bbabb5e7c4b33141fdfbd811c78120e2401a9f;p=vlc diff --git a/modules/demux/nsc.c b/modules/demux/nsc.c index 31dc3fb847..015ab4039a 100644 --- a/modules/demux/nsc.c +++ b/modules/demux/nsc.c @@ -29,9 +29,9 @@ # include "config.h" #endif -#include +#include +#include #include -#include #include #define MAX_LINE 16024 @@ -42,13 +42,13 @@ static int DemuxOpen ( vlc_object_t * ); static void DemuxClose ( vlc_object_t * ); -vlc_module_begin(); - set_description( _("Windows Media NSC metademux") ); - set_category( CAT_INPUT ); - set_subcategory( SUBCAT_INPUT_DEMUX ); - set_capability( "demux", 3 ); - set_callbacks( DemuxOpen, DemuxClose ); -vlc_module_end(); +vlc_module_begin () + set_description( N_("Windows Media NSC metademux") ) + set_category( CAT_INPUT ) + set_subcategory( SUBCAT_INPUT_DEMUX ) + set_capability( "demux", 3 ) + set_callbacks( DemuxOpen, DemuxClose ) +vlc_module_end () static int Demux ( demux_t *p_demux ); static int Control( demux_t *p_demux, int i_query, va_list args ); @@ -213,10 +213,7 @@ static char *nscdec( vlc_object_t *p_demux, char* p_encoded ) buf16_size = length; buf16 = malloc( buf16_size ); if( buf16 == NULL ) - { - msg_Err( p_demux, "out of memory" ); return NULL; - } for( i = 0; i < length; i++ ) { @@ -232,7 +229,6 @@ static char *nscdec( vlc_object_t *p_demux, char* p_encoded ) buf8 = malloc( buf8_size + 1 ); if( buf8 == NULL ) { - msg_Err( p_demux, "out of memory" ); free( buf16 ); return NULL; } @@ -268,7 +264,7 @@ static char *nscdec( vlc_object_t *p_demux, char* p_encoded ) static int DemuxOpen( vlc_object_t * p_this ) { demux_t *p_demux = (demux_t *)p_this; - const byte_t *p_peek; + const uint8_t *p_peek; int i_size; /* Lets check the content to see if this is a NSC file */ @@ -300,6 +296,7 @@ static int DemuxOpen( vlc_object_t * p_this ) *****************************************************************************/ static void DemuxClose( vlc_object_t *p_this ) { + VLC_UNUSED( p_this ); return; } @@ -366,5 +363,7 @@ static int Demux ( demux_t *p_demux ) static int Control( demux_t *p_demux, int i_query, va_list args ) { + VLC_UNUSED( p_demux ); VLC_UNUSED( i_query ); VLC_UNUSED( args ); + //FIXME return VLC_EGENERIC; }