- Timestamp:
- Jan 20, 2007 6:35:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r775 r889 771 771 } 772 772 773 pj_scan_advance_n(scanner, 3, SKIP_WS);774 pj_scan_ get_newline(scanner);773 /* We've got what we're looking for, skip anything until newline */ 774 pj_scan_skip_line(scanner); 775 775 } 776 776 … … 814 814 815 815 /* address */ 816 pj_scan_get_until_ch(scanner, '\r', &ses->origin.addr); 817 818 /* newline */ 819 pj_scan_get_newline(scanner); 816 pj_scan_get_until_chr(scanner, " \t\r", &ses->origin.addr); 817 818 /* We've got what we're looking for, skip anything until newline */ 819 pj_scan_skip_line(scanner); 820 820 821 } 821 822 … … 843 844 844 845 /* stop time */ 845 pj_scan_get_until_ch (scanner, '\r', &str);846 pj_scan_get_until_chr(scanner, " \t\r", &str); 846 847 ses->time.stop = pj_strtoul(&str); 847 848 848 /* newline */849 pj_scan_ get_newline(scanner);849 /* We've got what we're looking for, skip anything until newline */ 850 pj_scan_skip_line(scanner); 850 851 } 851 852 … … 864 865 pj_scan_advance_n(scanner, 2, SKIP_WS); 865 866 866 /* get anything until newline . */867 /* get anything until newline (including whitespaces). */ 867 868 pj_scan_get_until_ch(scanner, '\r', str); 868 869 … … 888 889 889 890 /* address. */ 890 pj_scan_get_until_ch (scanner, '\r', &conn->addr);891 892 /* newline */893 pj_scan_ get_newline(scanner);891 pj_scan_get_until_chr(scanner, " \t\r", &conn->addr); 892 893 /* We've got what we're looking for, skip anything until newline */ 894 pj_scan_skip_line(scanner); 894 895 } 895 896 … … 941 942 } 942 943 943 /* newline */944 pj_scan_ get_newline(scanner);944 /* We've got what we're looking for, skip anything until newline */ 945 pj_scan_skip_line(scanner); 945 946 } 946 947 … … 991 992 } 992 993 993 /* newline */994 pj_scan_ get_newline(scanner);994 /* We've got what we're looking for, skip anything until newline */ 995 pj_scan_skip_line(scanner); 995 996 996 997 return attr; … … 1097 1098 session = NULL; 1098 1099 1099 pj_assert(ctx.last_error == PJ_SUCCESS);1100 pj_assert(ctx.last_error != PJ_SUCCESS); 1100 1101 } 1101 1102 PJ_END;
Note: See TracChangeset
for help on using the changeset viewer.