... | ... |
@@ -1116,17 +1116,9 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, |
1116 | 1116 |
} |
1117 | 1117 |
} |
1118 | 1118 |
|
1119 |
-#if 0 |
|
1120 |
- /* then try on any port */ |
|
1121 |
- if (ffurl_open(&rtsp_st->rtp_handle, "rtp://", AVIO_FLAG_READ) < 0) { |
|
1122 |
- err = AVERROR_INVALIDDATA; |
|
1123 |
- goto fail; |
|
1124 |
- } |
|
1125 |
-#else |
|
1126 | 1119 |
av_log(s, AV_LOG_ERROR, "Unable to open an input RTP port\n"); |
1127 | 1120 |
err = AVERROR(EIO); |
1128 | 1121 |
goto fail; |
1129 |
-#endif |
|
1130 | 1122 |
|
1131 | 1123 |
rtp_opened: |
1132 | 1124 |
port = rtp_get_local_rtp_port(rtsp_st->rtp_handle); |
... | ... |
@@ -220,9 +220,6 @@ typedef struct RTSPState { |
220 | 220 |
* see rtsp_read_play() and rtsp_read_seek(). */ |
221 | 221 |
int64_t seek_timestamp; |
222 | 222 |
|
223 |
- /* XXX: currently we use unbuffered input */ |
|
224 |
- // AVIOContext rtsp_gb; |
|
225 |
- |
|
226 | 223 |
int seq; /**< RTSP command sequence number */ |
227 | 224 |
|
228 | 225 |
/** copy of RTSPMessageHeader->session_id, i.e. the server-provided session |
... | ... |
@@ -383,12 +383,6 @@ static int rtsp_read_close(AVFormatContext *s) |
383 | 383 |
{ |
384 | 384 |
RTSPState *rt = s->priv_data; |
385 | 385 |
|
386 |
-#if 0 |
|
387 |
- /* NOTE: it is valid to flush the buffer here */ |
|
388 |
- if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP) { |
|
389 |
- avio_close(&rt->rtsp_gb); |
|
390 |
- } |
|
391 |
-#endif |
|
392 | 386 |
ff_rtsp_send_cmd_async(s, "TEARDOWN", rt->control_uri, NULL); |
393 | 387 |
|
394 | 388 |
ff_rtsp_close_streams(s); |