Mercurial > mplayer.hg
comparison libmpdemux/librtsp/rtsp.c @ 18850:bb64a42a4559
removed unused hexdump()
author | ben |
---|---|
date | Thu, 29 Jun 2006 21:20:01 +0000 |
parents | f17474882196 |
children | 703273c5e860 |
comparison
equal
deleted
inserted
replaced
18849:2f4cf2d615cb | 18850:bb64a42a4559 |
---|---|
230 | 230 |
231 return total; | 231 return total; |
232 } | 232 } |
233 | 233 |
234 /* | 234 /* |
235 * debugging utilities | |
236 */ | |
237 #if 0 | |
238 static void hexdump (char *buf, int length) { | |
239 | |
240 int i; | |
241 | |
242 mp_msg(MSGT_OPEN, MSGL_INFO, "rtsp: ascii>"); | |
243 for (i = 0; i < length; i++) { | |
244 unsigned char c = buf[i]; | |
245 | |
246 if ((c >= 32) && (c <= 128)) | |
247 mp_msg(MSGT_OPEN, MSGL_INFO, "%c", c); | |
248 else | |
249 mp_msg(MSGT_OPEN, MSGL_INFO, "."); | |
250 } | |
251 mp_msg(MSGT_OPEN, MSGL_INFO, "\n"); | |
252 | |
253 mp_msg(MSGT_OPEN, MSGL_INFO, "rtsp: hexdump> "); | |
254 for (i = 0; i < length; i++) { | |
255 unsigned char c = buf[i]; | |
256 | |
257 mp_msg(MSGT_OPEN, MSGL_INFO, "%02x", c); | |
258 | |
259 if ((i % 16) == 15) | |
260 mp_msg(MSGT_OPEN, MSGL_INFO, "\nrtsp: "); | |
261 | |
262 if ((i % 2) == 1) | |
263 mp_msg(MSGT_OPEN, MSGL_INFO, " "); | |
264 | |
265 } | |
266 mp_msg(MSGT_OPEN, MSGL_INFO, "\n"); | |
267 } | |
268 #endif | |
269 | |
270 /* | |
271 * rtsp_get gets a line from stream | 235 * rtsp_get gets a line from stream |
272 * and returns a null terminated string. | 236 * and returns a null terminated string. |
273 */ | 237 */ |
274 | 238 |
275 static char *rtsp_get(rtsp_t *s) { | 239 static char *rtsp_get(rtsp_t *s) { |