MP4_Box_t *p_rdrf = MP4_BoxGet( p_rmra, "rmda[%d]/rdrf", i );
char *psz_ref;
uint32_t i_ref_type;
+ int i_position = p_playlist->i_index;
if( !p_rdrf || !( psz_ref = p_rdrf->data.p_rdrf->psz_ref ) )
{
{
msg_Dbg( p_demux, "adding ref = `%s'", psz_ref );
playlist_Add( p_playlist, psz_ref, psz_ref,
- PLAYLIST_APPEND, PLAYLIST_END );
+ PLAYLIST_APPEND, i_position );
}
else
{
strcat( psz_absolute, psz_ref );
msg_Dbg( p_demux, "adding ref = `%s'", psz_absolute );
playlist_Add( p_playlist, psz_absolute, psz_absolute,
- PLAYLIST_APPEND, PLAYLIST_END );
+ PLAYLIST_APPEND, i_position );
}
}
else
int i_pos = playlist_GetPositionById( p_playlist,
p_intf->p_sys->pp_announces[i]->i_id );
playlist_Delete( p_playlist, i_pos );
+ vlc_object_release( p_playlist );
}
- vlc_object_release( p_playlist );
-
/* Free the p_announce */
p_announce = p_intf->p_sys->pp_announces[i];
if( p_announce->psz_name )
char *psz_end;
/* Search begin of field */
- while( *p_packet == '\n' || *p_packet == ' ' || *p_packet == '\t' )
+ while( *p_packet == '\r' || *p_packet == '\n' || *p_packet == ' ' || *p_packet == '\t' )
{
p_packet++;
}
}
p_playlist->pp_items[p_playlist->i_index]->b_autodeletion = VLC_TRUE;
- i_position = p_playlist->i_index + 1;
+ i_position = p_playlist->i_index;
/* Gather the complete sdp file */
for( ;; )
i_id = playlist_Add( p_playlist, psz_uri, p_sd->psz_sessionname ,
PLAYLIST_CHECK_INSERT, i_position );
free( psz_uri );
+ vlc_object_release( p_playlist );
return 0;
}
if( !p_sd->pp_media[i_count] )
{
+ vlc_object_release( p_playlist );
return -1;
}
if( !psz_proto || !psz_port )
{
+ vlc_object_release( p_playlist );
return -1;
}
if( psz_uri == NULL )
{
+ vlc_object_release( p_playlist );
return -1;
}