summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-04-19 13:54:11 +0000
committerLuca Abeni <lucabe72@email.it>2007-04-19 13:54:11 +0000
commit2c6a5e6ccd868804849685b407afefdeaf876586 (patch)
tree0c5697859844cecf0aaac44293b8678844bdc912 /ffserver.c
parentb8c4a51598fc34a7613dc5e94cbf067d11c61a08 (diff)
Remove unused callbacks from ffserver
Originally committed as revision 8758 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ffserver.c b/ffserver.c
index 040c5f8d24..529740466e 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2932,18 +2932,6 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url,
dest_addr = rtp_c->from_addr;
dest_addr.sin_port = htons(th->client_port_min);
- /* add transport option if needed */
- if (ff_rtsp_callback) {
- setup.ipaddr = ntohl(dest_addr.sin_addr.s_addr);
- if (ff_rtsp_callback(RTSP_ACTION_SERVER_SETUP, rtp_c->session_id,
- (char *)&setup, sizeof(setup),
- stream->rtsp_option) < 0) {
- rtsp_reply_error(c, RTSP_STATUS_TRANSPORT);
- return;
- }
- dest_addr.sin_addr.s_addr = htonl(setup.ipaddr);
- }
-
/* setup stream */
if (rtp_new_av_stream(rtp_c, stream_index, &dest_addr, c) < 0) {
rtsp_reply_error(c, RTSP_STATUS_TRANSPORT);
@@ -3084,12 +3072,6 @@ static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h)
/* abort the session */
close_connection(rtp_c);
- if (ff_rtsp_callback) {
- ff_rtsp_callback(RTSP_ACTION_SERVER_TEARDOWN, rtp_c->session_id,
- NULL, 0,
- rtp_c->stream->rtsp_option);
- }
-
/* now everything is OK, so we can send the connection parameters */
rtsp_reply_header(c, RTSP_STATUS_OK);
/* session ID */