/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h>
-#include <string.h>
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include <vlc/vlc.h>
#include <vlc_input.h>
sout_stream_sys_t *p_sys = p_stream->p_sys;
/* It can happen only if buggy */
- if( p_sys->p_input )
- vlc_object_release( p_sys->p_input );
+ assert( !p_sys->p_input );
+
free( p_sys );
}
p_sys->p_input = vlc_object_find( p_stream, VLC_OBJECT_INPUT, FIND_PARENT );
if( !p_sys->p_input )
return NULL;
-
+
p_item = input_GetItem(p_sys->p_input);
p_fmt_copy = malloc(sizeof(es_format_t));
static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
block_t *p_buffer )
{
+ VLC_UNUSED(id);
sout_stream_sys_t *p_sys = p_stream->p_sys;
block_ChainRelease( p_buffer );
if( p_sys->p_input && p_sys->i_stream_start + 1500000 < mdate() )
- p_sys->p_input->b_eof = VLC_TRUE;
+ p_sys->p_input->b_eof = true;
return VLC_SUCCESS;
}