comparison rtsp.c @ 5480:42d058e5d7b5 libavformat

Rename internal function sdp_read_packet -> rtsp_fetch_packet This way describes slightly better what it does.
author lu_zero
date Wed, 30 Dec 2009 16:19:28 +0000
parents d93af9bfc0b8
children ee963dbe6ced
comparison
equal deleted inserted replaced
5479:17744e7f9e4c 5480:42d058e5d7b5
613 #endif 613 #endif
614 } 614 }
615 } 615 }
616 } 616 }
617 617
618 static int sdp_read_packet(AVFormatContext *s, AVPacket *pkt) 618 static int rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
619 { 619 {
620 RTSPState *rt = s->priv_data; 620 RTSPState *rt = s->priv_data;
621 int ret, len; 621 int ret, len;
622 uint8_t buf[10 * RTP_MAX_PACKET_LENGTH]; 622 uint8_t buf[10 * RTP_MAX_PACKET_LENGTH];
623 RTSPStream *rtsp_st; 623 RTSPStream *rtsp_st;
1624 if (rt->state == RTSP_STATE_PLAYING) 1624 if (rt->state == RTSP_STATE_PLAYING)
1625 rtsp_read_play (s); 1625 rtsp_read_play (s);
1626 } 1626 }
1627 } 1627 }
1628 1628
1629 ret = sdp_read_packet(s, pkt); 1629 ret = rtsp_fetch_packet(s, pkt);
1630 if (ret < 0) { 1630 if (ret < 0) {
1631 return ret; 1631 return ret;
1632 } 1632 }
1633 1633
1634 /* send dummy request to keep TCP connection alive */ 1634 /* send dummy request to keep TCP connection alive */
1809 "sdp", 1809 "sdp",
1810 NULL_IF_CONFIG_SMALL("SDP"), 1810 NULL_IF_CONFIG_SMALL("SDP"),
1811 sizeof(RTSPState), 1811 sizeof(RTSPState),
1812 sdp_probe, 1812 sdp_probe,
1813 sdp_read_header, 1813 sdp_read_header,
1814 sdp_read_packet, 1814 rtsp_fetch_packet,
1815 sdp_read_close, 1815 sdp_read_close,
1816 }; 1816 };