#endif
#include <vlc/vlc.h>
+#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_codec.h>
vlc_module_begin();
- set_shortname( _("Kate"));
- set_description( _("Kate text subtitles decoder") );
+ set_shortname( N_("Kate"));
+ set_description( N_("Kate text subtitles decoder") );
set_capability( "decoder", 50 );
set_callbacks( OpenDecoder, CloseDecoder );
set_category( CAT_INPUT );
#ifdef ENABLE_PACKETIZER
add_submodule();
- set_description( _("Kate text subtitles packetizer") );
+ set_description( N_("Kate text subtitles packetizer") );
set_capability( "packetizer", 100 );
set_callbacks( OpenPacketizer, CloseDecoder );
add_shortcut( "kate" );
/* Allocate the memory needed to store the decoder's structure */
if( ( p_dec->p_sys = p_sys =
(decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
- {
- msg_Err( p_dec, "out of memory" );
return VLC_ENOMEM;
- }
/* init of p_sys */
#ifdef ENABLE_PACKETIZER
p_spu->p_region->psz_text = strdup(ev->text); /* no leak, this actually gets killed by the core */
p_spu->i_start = p_block->i_pts;
- p_spu->i_stop = p_block->i_pts + I64C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
+ p_spu->i_stop = p_block->i_pts + INT64_C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
p_spu->b_ephemer = (p_block->i_length == 0);
p_spu->b_absolute = false;