- gettimeofday(&now, NULL);
- tv_add(&now, &min_delay, &pord->next_chunk);
- if (pord->start.tv_sec) {
- int new_ts;
-
- tv_diff(&now, &pord->start, &tmp);
- new_ts = rtp_session_time_to_ts(pord->session, tv2ms(&tmp));
-// if (pord->c_bad > 50)
- pord->timestamp = new_ts;
- } else
- pord->timestamp = 0;
- PARA_DEBUG_LOG("ts=%u, c_bad = %d\n", pord->timestamp, pord->c_bad);
+static int msg_to_buf(mblk_t *mp, char *buffer, int len)
+{
+ mblk_t *m, *mprev;
+ size_t mlen, rlen = len;