[ipaccess] Start the parser recursively...
* Start parsing the sub SDPs with the same analyze method
This commit is contained in:
parent
1029f84435
commit
b1414d99c4
|
@ -155,13 +155,9 @@ static void analyze_file(int fd, const unsigned int st_size, const unsigned int
|
|||
return;
|
||||
}
|
||||
|
||||
rc = read(fd, &buf, 4);
|
||||
if (rc != 4) {
|
||||
perror("peek failed");
|
||||
return;
|
||||
}
|
||||
|
||||
printf("FOO %.4s\n", buf);
|
||||
printf("------> parsing\n");
|
||||
analyze_file(fd, ntohl(entry.length), offset);
|
||||
printf("<------ parsing\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue