mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
Remove some pointless CONFIG_RTSP_DEMUXER #ifdefs.
They reside within a large CONFIG_RTSP_DEMUXER block and are thus pointless. Originally committed as revision 25343 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2e802e3855
commit
a44da176ac
@ -1726,7 +1726,6 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if CONFIG_RTSP_DEMUXER
|
|
||||||
if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) {
|
if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) {
|
||||||
RTSPMessageHeader reply;
|
RTSPMessageHeader reply;
|
||||||
|
|
||||||
@ -1737,7 +1736,6 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
|
|||||||
if (rt->state != RTSP_STATE_STREAMING)
|
if (rt->state != RTSP_STATE_STREAMING)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
} else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
|
} else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
|
||||||
return FF_NETERROR(ETIMEDOUT);
|
return FF_NETERROR(ETIMEDOUT);
|
||||||
} else if (n < 0 && errno != EINTR)
|
} else if (n < 0 && errno != EINTR)
|
||||||
@ -1850,11 +1848,9 @@ static int rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
switch(rt->lower_transport) {
|
switch(rt->lower_transport) {
|
||||||
default:
|
default:
|
||||||
#if CONFIG_RTSP_DEMUXER
|
|
||||||
case RTSP_LOWER_TRANSPORT_TCP:
|
case RTSP_LOWER_TRANSPORT_TCP:
|
||||||
len = tcp_read_packet(s, &rtsp_st, rt->recvbuf, RECVBUF_SIZE);
|
len = tcp_read_packet(s, &rtsp_st, rt->recvbuf, RECVBUF_SIZE);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case RTSP_LOWER_TRANSPORT_UDP:
|
case RTSP_LOWER_TRANSPORT_UDP:
|
||||||
case RTSP_LOWER_TRANSPORT_UDP_MULTICAST:
|
case RTSP_LOWER_TRANSPORT_UDP_MULTICAST:
|
||||||
len = udp_read_packet(s, &rtsp_st, rt->recvbuf, RECVBUF_SIZE, wait_end);
|
len = udp_read_packet(s, &rtsp_st, rt->recvbuf, RECVBUF_SIZE, wait_end);
|
||||||
|
Loading…
Reference in New Issue
Block a user