/* Returns CRStatement at position itemnr, if itemnr > number of rules - 1, it will return NULL.  */
CRStatement* cr_statement_at_media_get_from_list(CRStatement *a_this, int itemnr)
/* Returns CRStatement at position itemnr, if itemnr > number of rules - 1, it will return NULL.  */
CRStatement* cr_statement_at_media_get_from_list(CRStatement *a_this, int itemnr)
{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_MEDIA_RULE_STMT
                              && a_this->kind.media_rule, NULL);
        return cr_statement_get_from_list (a_this->kind.media_rule->rulesets,
                                           itemnr);
}