'Insert media instance in media list on a position
The L{lock} should be held upon entering this function.
@param p_md: a media instance.
@param i_pos: position in array where to insert.
@return: 0 on success, -1 if the media list is read-only.'

def insert_media(self, p_md, i_pos):

    return libvlc_media_list_insert_media(self, p_md, i_pos)
