* subsdec.c : text subtitles decoder
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: subsdec.c,v 1.8 2003/11/18 23:25:38 sigmunau Exp $
+ * $Id: subsdec.c,v 1.9 2003/11/18 23:58:10 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Samuel Hocevar <sam@zoy.org>
{
vout_thread_t *p_vout;
+ if( !pp_block || *pp_block == NULL )
+ {
+ return;
+ }
+
/* Here we are dealing with text subtitles */
p_vout = vlc_object_find( p_dec, VLC_OBJECT_VOUT, FIND_ANYWHERE );
if( !p_vout )
ParseText( p_dec, *pp_block, p_vout );
vlc_object_release( p_vout );
+
+ block_Release( *pp_block );
+ *pp_block = NULL;
}
/*****************************************************************************
{
char *psz_new_subtitle;
char *psz_convert_buffer_out;
- const char *psz_convert_buffer_in;
+ char *psz_convert_buffer_in;
size_t ret, inbytes_left, outbytes_left;
psz_new_subtitle = malloc( 6 * strlen( psz_subtitle ) );