dshow_stream.p_device_filter = p_device_filter;
dshow_stream.p_capture_filter = p_capture_filter;
- p_sys->pp_streams = realloc_or_free( p_sys->pp_streams,
- sizeof(dshow_stream_t *) * (p_sys->i_streams + 1) );
+ p_sys->pp_streams = (dshow_stream_t **)realloc_or_free(
+ p_sys->pp_streams,
+ sizeof(dshow_stream_t *) * (p_sys->i_streams + 1) );
assert( p_sys->pp_streams );
p_sys->pp_streams[p_sys->i_streams] = new dshow_stream_t;
*p_sys->pp_streams[p_sys->i_streams++] = dshow_stream;
if( !list_devices.size() ) return VLC_SUCCESS;
- p_item->ppsz_list = realloc_or_free( p_item->ppsz_list,
+ p_item->ppsz_list = (char**)realloc_or_free( p_item->ppsz_list,
(list_devices.size()+3) * sizeof(char *) );
assert( p_item->ppsz_list );
- p_item->ppsz_list_text = realloc_or_free( p_item->ppsz_list_text,
+ p_item->ppsz_list_text = (char**)realloc_or_free( p_item->ppsz_list_text,
(list_devices.size()+3) * sizeof(char *) );
assert( p_item->ppsz_list_text );
#include <vlc_common.h>
#include <vlc_access.h>
+#include <vlc_memory.h>
#include <errno.h>
#include <assert.h>
# include "config.h"
#endif
+#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_codec.h>
p_dec->fmt_out.i_extra = p_dec->fmt_in.i_extra;
p_dec->fmt_out.p_extra = realloc_or_free( p_dec->fmt_out.p_extra,
p_dec->fmt_out.i_extra );
- assert( p_dec->fmt_out.p_extra );
+ /*assert( p_dec->fmt_out.p_extra ); assert undefined here? */
memcpy( p_dec->fmt_out.p_extra,
p_dec->fmt_in.p_extra, p_dec->fmt_out.i_extra );
}
// A start time of '0' is ok. A missing ChapterTime element is ok, too, because '0' is its default value.
title.i_seekpoint++;
- title.seekpoint = realloc_or_free( title.seekpoint,
+ title.seekpoint = (seekpoint_t**)realloc_or_free( title.seekpoint,
title.i_seekpoint * sizeof( seekpoint_t* ) );
assert( title.seekpoint );
title.seekpoint[title.i_seekpoint-1] = sk;
if( i_index >= i_index_max )
{
i_index_max += 1024;
- p_indexes = realloc_or_free( p_indexes,
+ p_indexes = (mkv_index_t*)realloc_or_free( p_indexes,
sizeof( mkv_index_t ) * i_index_max );
assert( p_indexes );
}
if( i_index >= i_index_max )
{
i_index_max += 1024;
- p_indexes = realloc_or_free( p_indexes,
+ p_indexes = (mkv_index_t*)realloc_or_free( p_indexes,
sizeof( mkv_index_t ) * i_index_max );
assert( p_indexes );
}
# include "config.h"
#endif
+#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_demux.h>
# include "config.h"
#endif
+#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_input.h>
# include "config.h"
#endif
+#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout.h>