Commit afbbfaad authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

misc: remove unnecessary cast when using vlc_array_item_at_index

vlc_array_item_at_index returns a value of type pointer-to-void,
meaning that the pointer is implicitly convertible to the destination
type (there is no need for the explicit cast).
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent fbbbcc62
......@@ -614,7 +614,7 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t
//scale to i_index_offset..numsegs + i_index_offset
uint32_t index = i - i_firstseg + i_index_offset;
output_segment_t *segment = (output_segment_t *)vlc_array_item_at_index( p_sys->segments_t, index );
output_segment_t *segment = vlc_array_item_at_index( p_sys->segments_t, index );
if( p_sys->key_uri &&
( !psz_current_uri || strcmp( psz_current_uri, segment->psz_key_uri ) )
)
......@@ -714,7 +714,7 @@ static void closeCurrentSegment( sout_access_out_t *p_access, sout_access_out_sy
{
if ( p_sys->i_handle >= 0 )
{
output_segment_t *segment = (output_segment_t *)vlc_array_item_at_index( p_sys->segments_t, vlc_array_count( p_sys->segments_t ) - 1 );
output_segment_t *segment = vlc_array_item_at_index( p_sys->segments_t, vlc_array_count( p_sys->segments_t ) - 1 );
if( p_sys->key_uri )
{
......
......@@ -279,7 +279,7 @@ static void Close( vlc_object_t * p_this )
for( int i = 0; i < vlc_array_count( p_sys->p_tracks ); i++ )
{
asf_track_t *track = (asf_track_t *)vlc_array_item_at_index( p_sys->p_tracks, i );
asf_track_t *track = vlc_array_item_at_index( p_sys->p_tracks, i );
free( track->p_extra );
es_format_Clean( &track->fmt );
free( track );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment