psz_head[ i_header_size-1 ] = '\0';
p_sap_session->i_length = i_header_size + strlen( p_sap_session->psz_sdp);
- p_sap_session->psz_data = (char *)malloc( sizeof(char)*
- p_sap_session->i_length );
+ p_sap_session->psz_data = (uint8_t *)malloc( sizeof(char)*
+ p_sap_session->i_length );
/* Build the final message */
memcpy( p_sap_session->psz_data, psz_head, i_header_size );
static int CalculateRate( sap_handler_t *p_sap, sap_address_t *p_address )
{
int i_read;
- char buffer[SAP_MAX_BUFFER];
+ uint8_t buffer[SAP_MAX_BUFFER];
int i_tot = 0;
mtime_t i_temp;
int i_rate;
static void AspectRatio ( int, int *, int * );
static int BinaryLog ( uint32_t );
static void MaskToShift ( int *, int *, uint32_t );
-static void InitWindowSize ( vout_thread_t *, int *, int * );
+static void InitWindowSize ( vout_thread_t *, unsigned *, unsigned * );
/* Object variables callbacks */
static int DeinterlaceCallback( vlc_object_t *, char const *,
p_vout = vlc_object_find( p_playlist,
VLC_OBJECT_VOUT, FIND_CHILD );
/* only first children of p_input for unused vout */
- if( p_vout && p_vout->p_parent != p_playlist )
+ if( p_vout && p_vout->p_parent != (vlc_object_t *)p_playlist )
{
vlc_object_release( p_vout );
p_vout = NULL;
* This function will check the "width", "height" and "zoom" config options and
* will calculate the size that the video window should have.
*****************************************************************************/
-static void InitWindowSize( vout_thread_t *p_vout, int *pi_width,
- int *pi_height )
+static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
+ unsigned *pi_height )
{
vlc_value_t val;
int i_width, i_height;