#ifdef ENABLE_VLM
-#ifndef WIN32
-# include <sys/time.h> /* gettimeofday() */
-#endif
-
#include <time.h> /* ctime() */
#include <vlc_input.h>
#include "input_internal.h"
#include <vlc_stream.h>
#include "vlm_internal.h"
-#include <vlc_vod.h>
#include <vlc_charset.h>
#include <vlc_sout.h>
#include "../stream_output/stream_output.h"
static int ExecuteLoad( vlm_t *p_vlm, const char *psz_url, vlm_message_t **pp_status )
{
stream_t *p_stream = stream_UrlNew( p_vlm, psz_url );
- int64_t i_size;
+ uint64_t i_size;
char *psz_buffer;
if( !p_stream )
}
i_size = stream_Size( p_stream );
+ if( i_size > SIZE_MAX - 1 )
+ i_size = SIZE_MAX - 1;
psz_buffer = malloc( i_size + 1 );
if( !psz_buffer )
psz_line = strdup( ppsz_property[i] );
for( j = i+1; j < i_property; j++ )
{
- psz_line = realloc( psz_line, strlen(psz_line) + strlen(ppsz_property[j]) + 1 + 1 );
+ psz_line = xrealloc( psz_line,
+ strlen(psz_line) + strlen(ppsz_property[j]) + 1 + 1 );
strcat( psz_line, " " );
strcat( psz_line, ppsz_property[j] );
}
APPEND_INPUT_INFO( "position", "%f", Float );
APPEND_INPUT_INFO( "time", "%"PRIi64, Time );
APPEND_INPUT_INFO( "length", "%"PRIi64, Time );
- APPEND_INPUT_INFO( "rate", "%d", Integer );
+ APPEND_INPUT_INFO( "rate", "%f", Float );
APPEND_INPUT_INFO( "title", "%d", Integer );
APPEND_INPUT_INFO( "chapter", "%d", Integer );
APPEND_INPUT_INFO( "can-seek", "%d", Bool );