I wonder if it would be worthwhile to have a macro like:

    #define DLNASRC_HAS_FEATURE(src, feature) (src && src->server_info && src->server_info_content_features && src->server_info->content->features->flag_##feature_set)