Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 159990
Collapse All | Expand All

(-)stream/realrtsp/asmrp.c (-2 / +5 lines)
Lines 40-45 Link Here
40
#include <stdlib.h>
40
#include <stdlib.h>
41
#include <stdio.h>
41
#include <stdio.h>
42
#include <string.h>
42
#include <string.h>
43
#include "asmrp.h"
43
44
44
/*
45
/*
45
#define LOG
46
#define LOG
Lines 645-652 Link Here
645
#ifdef LOG
646
#ifdef LOG
646
      printf ("rule #%d is true\n", rule_num);
647
      printf ("rule #%d is true\n", rule_num);
647
#endif
648
#endif
648
      matches[num_matches] = rule_num;
649
      if(num_matches < MAX_RULEMATCHES - 1)
649
      num_matches++;
650
        matches[num_matches++] = rule_num;
651
      else
652
        printf("Ignoring matched asm rule %d, too many matched rules.\n", rule_num);
650
    }
653
    }
651
654
652
    rule_num++;
655
    rule_num++;
(-)stream/realrtsp/real.c (-1 / +1 lines)
Lines 271-277 Link Here
271
    int j=0;
271
    int j=0;
272
    int n;
272
    int n;
273
    char b[64];
273
    char b[64];
274
    int rulematches[16];
274
    int rulematches[MAX_RULEMATCHES];
275
275
276
#ifdef LOG
276
#ifdef LOG
277
    printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
277
    printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
(-)stream/realrtsp/asmrp.h (+2 lines)
Lines 40-45 Link Here
40
#ifndef HAVE_ASMRP_H
40
#ifndef HAVE_ASMRP_H
41
#define HAVE_ASMRP_H
41
#define HAVE_ASMRP_H
42
42
43
#define MAX_RULEMATCHES 16
44
43
int asmrp_match (const char *rules, int bandwidth, int *matches) ;
45
int asmrp_match (const char *rules, int bandwidth, int *matches) ;
44
46
45
#endif
47
#endif

Return to bug 159990